pub struct BmpStringFmt;Expand description
ASN.1 BMPString format.
Trait Implementations§
Source§impl BerDecoderOwned for BmpStringFmt
Available on crate feature alloc only.
impl BerDecoderOwned for BmpStringFmt
Available on crate feature
alloc only.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 Clone for BmpStringFmt
impl Clone for BmpStringFmt
Source§fn clone(&self) -> BmpStringFmt
fn clone(&self) -> BmpStringFmt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Consistency for BmpStringFmt
impl Consistency for BmpStringFmt
Source§open spec fn consistent(&self, v: Self::Val) -> bool
open spec fn consistent(&self, v: Self::Val) -> bool
{ bmpstring_fmt().consistent(v) && v.wf() }Source§type Val = BmpStringSpec
type Val = BmpStringSpec
The type of values whose consistency is being checked.
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 DerState for BmpStringFmt
Available on crate feature alloc only.
impl DerState for BmpStringFmt
Available on crate feature
alloc only.type State = BmpStringDerState
Source§impl EquivSerializers for BmpStringFmt
impl EquivSerializers for BmpStringFmt
Source§impl GoodSerializer for BmpStringFmt
impl GoodSerializer for BmpStringFmt
Source§proof fn lemma_serialize_len(&self, v: Self::SVal)
proof fn lemma_serialize_len(&self, v: Self::SVal)
Source§fn serialize_inv(&self) -> bool
fn serialize_inv(&self) -> bool
Source§impl NonMalleable for BmpStringFmt
impl NonMalleable for BmpStringFmt
Source§proof fn lemma_parse_non_malleable(&self, buf1: Seq<u8>, buf2: Seq<u8>)
proof fn lemma_parse_non_malleable(&self, buf1: Seq<u8>, buf2: Seq<u8>)
Source§fn nonmal_inv(&self) -> bool
fn nonmal_inv(&self) -> bool
Source§impl<'i> Parser<&'i [u8]> for BmpStringFmt
Available on crate feature alloc only.
impl<'i> Parser<&'i [u8]> for BmpStringFmt
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 Productive for BmpStringFmt
impl Productive for BmpStringFmt
Source§open spec fn productive_inv(&self) -> bool
open spec fn productive_inv(&self) -> bool
{ false }Source§proof fn lemma_productive(&self, _s: Seq<u8>)
proof fn lemma_productive(&self, _s: Seq<u8>)
Source§impl SPRoundTripDps for BmpStringFmt
impl SPRoundTripDps for BmpStringFmt
Source§proof fn theorem_serialize_dps_parse_roundtrip(&self, v: Self::T, obuf: Seq<u8>)
proof fn theorem_serialize_dps_parse_roundtrip(&self, v: Self::T, obuf: Seq<u8>)
Source§fn unambiguous(&self) -> bool
fn unambiguous(&self) -> bool
Source§impl SafeParser for BmpStringFmt
impl SafeParser for BmpStringFmt
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)
Source§impl SoundParser for BmpStringFmt
impl SoundParser for BmpStringFmt
Source§impl SpecByteLen for BmpStringFmt
impl SpecByteLen for BmpStringFmt
Source§impl SpecParser for BmpStringFmt
impl SpecParser for BmpStringFmt
Source§open spec fn spec_parse(&self, ibuf: Seq<u8>) -> Option<(int, Self::PVal)>
open spec fn spec_parse(&self, ibuf: Seq<u8>) -> Option<(int, Self::PVal)>
{ bmpstring_fmt().spec_parse(ibuf) }Source§type PVal = BmpStringSpec
type PVal = BmpStringSpec
The type of parsed values.
Source§impl SpecSerializer for BmpStringFmt
impl SpecSerializer for BmpStringFmt
Source§open spec fn spec_serialize(&self, v: Self::SVal) -> Seq<u8>
open spec fn spec_serialize(&self, v: Self::SVal) -> Seq<u8>
{ bmpstring_fmt().spec_serialize(v) }Source§type SVal = BmpStringSpec
type SVal = BmpStringSpec
The type of values to be serialized.
Source§impl SpecSerializerDps for BmpStringFmt
impl SpecSerializerDps for BmpStringFmt
Source§open spec fn spec_serialize_dps(&self, v: Self::SValue, obuf: Seq<u8>) -> Seq<u8>
open spec fn spec_serialize_dps(&self, v: Self::SValue, obuf: Seq<u8>) -> Seq<u8>
{ bmpstring_fmt().spec_serialize_dps(v, obuf) }Source§type SValue = BmpStringSpec
type SValue = BmpStringSpec
The type of values to be serialized.
impl Copy for BmpStringFmt
Auto Trait Implementations§
impl Freeze for BmpStringFmt
impl RefUnwindSafe for BmpStringFmt
impl Send for BmpStringFmt
impl Sync for BmpStringFmt
impl Unpin for BmpStringFmt
impl UnsafeUnpin for BmpStringFmt
impl UnwindSafe for BmpStringFmt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, VERUS_SPEC__A> FromSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: From<T>,
impl<T, VERUS_SPEC__A> FromSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: From<T>,
fn obeys_from_spec() -> bool
fn from_spec(v: T) -> VERUS_SPEC__A
§impl<T, VERUS_SPEC__A> IntoSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: Into<T>,
impl<T, VERUS_SPEC__A> IntoSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: Into<T>,
fn obeys_into_spec() -> bool
fn into_spec(self) -> T
§impl<T, U> IntoSpecImpl<U> for Twhere
U: From<T>,
impl<T, U> IntoSpecImpl<U> for Twhere
U: From<T>,
fn obeys_into_spec() -> bool
fn into_spec(self) -> U
Source§impl<C> NonAmbiguous for Cwhere
C: SPRoundTrip,
impl<C> NonAmbiguous for Cwhere
C: SPRoundTrip,
Source§open spec fn nonamb_inv(&self) -> bool
open spec fn nonamb_inv(&self) -> bool
{ self.sp_roundtrip_inv() }Source§proof fn lemma_serialize_injective(
&self,
v1: <C as Consistency>::Val,
v2: <C as Consistency>::Val,
)
proof fn lemma_serialize_injective( &self, v1: <C as Consistency>::Val, v2: <C as Consistency>::Val, )
Source§impl<C> PSRoundTrip for C
impl<C> PSRoundTrip for C
Source§open spec fn ps_roundtrip_inv(&self) -> bool
open spec fn ps_roundtrip_inv(&self) -> bool
{ self.safe_inv() && self.sound_inv() && self.nonmal_inv() && self.sp_roundtrip_inv() }Source§proof fn theorem_parse_serialize_roundtrip(&self, ibuf: Seq<u8>)
proof fn theorem_parse_serialize_roundtrip(&self, ibuf: Seq<u8>)
Source§impl<C> SPRoundTrip for C
impl<C> SPRoundTrip for C
Source§open spec fn sp_roundtrip_inv(&self) -> bool
open spec fn sp_roundtrip_inv(&self) -> bool
{ self.serialize_inv() && self.equiv_inv() && self.unambiguous() }