pub struct BmpString { /* private fields */ }Expand description
Semantic BMPString value. Parsing necessarily owns the result because BMPString wire octets are not UTF-8 and constructed BER values may span discontiguous input segments.
Implementations§
Trait Implementations§
Source§impl ByteLen<BmpString> for BmpStringFmt
Available on crate feature alloc only.
impl ByteLen<BmpString> for BmpStringFmt
Available on crate feature
alloc only.Source§impl DerOrd<BmpString> for BmpStringFmt
Available on crate feature alloc only.
impl DerOrd<BmpString> for BmpStringFmt
Available on crate feature
alloc only.Source§proof fn lemma_der_serialize_len(&self, value: BmpStringSpec)
proof fn lemma_der_serialize_len(&self, value: BmpStringSpec)
Source§open spec fn der_remaining(
&self,
value: BmpStringSpec,
state: BmpStringDerState,
) -> Seq<u8>
open spec fn der_remaining( &self, value: BmpStringSpec, state: BmpStringDerState, ) -> Seq<u8>
{ self.spec_serialize(value).skip(bmp_string_der_position(state) as int) }Source§open spec fn der_state_valid(
&self,
value: BmpStringSpec,
state: BmpStringDerState,
) -> bool
open spec fn der_state_valid( &self, value: BmpStringSpec, state: BmpStringDerState, ) -> bool
{
&&& state.char_index <= value.inner.len()
&&& state.char_index == value.inner.len() ==> !state.second_octet
}Source§exec fn der_start(&self, s: &BmpString) -> state : BmpStringDerState
exec fn der_start(&self, s: &BmpString) -> state : BmpStringDerState
Source§impl<const HAS_MIN: bool, const MIN: usize, const HAS_MAX: bool, const MAX: usize> Pred<BmpString> for Size<HAS_MIN, MIN, HAS_MAX, MAX>
Available on crate feature alloc only.
impl<const HAS_MIN: bool, const MIN: usize, const HAS_MAX: bool, const MAX: usize> Pred<BmpString> for Size<HAS_MIN, MIN, HAS_MAX, MAX>
Available on crate feature
alloc only.Source§impl Prepare<BmpString> for BmpStringFmt
Available on crate feature alloc only.
impl Prepare<BmpString> for BmpStringFmt
Available on crate feature
alloc only.Source§impl<Output: OutputBuf> Serializer<Output, BmpString> for BmpStringFmt
Available on crate feature alloc only.
impl<Output: OutputBuf> Serializer<Output, BmpString> for BmpStringFmt
Available on crate feature
alloc only.Source§exec fn serialize_into(&self, v: &BmpString, obuf: &mut Output)
exec fn serialize_into(&self, v: &BmpString, obuf: &mut Output)
Auto Trait Implementations§
impl Freeze for BmpString
impl RefUnwindSafe for BmpString
impl Send for BmpString
impl Sync for BmpString
impl Unpin for BmpString
impl UnsafeUnpin for BmpString
impl UnwindSafe for BmpString
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more