pub struct Ia5StringFmt;Expand description
ASN.1 IA5String format.
Trait Implementations§
Source§impl BerDecoderOwned for Ia5StringFmt
Available on crate feature alloc only.
impl BerDecoderOwned for Ia5StringFmt
Available on crate feature
alloc only.Source§exec fn decode_owned(&self, bytes: Vec<u8>) -> Result<Self::Owned, ParseError>
exec fn decode_owned(&self, bytes: Vec<u8>) -> Result<Self::Owned, ParseError>
type Owned = Ia5StringOwned
Source§impl<'i> ByteLen<Ia5String<'i>> for Ia5StringFmt
impl<'i> ByteLen<Ia5String<'i>> for Ia5StringFmt
Source§impl ByteLen<Ia5StringOwned> for Ia5StringFmt
Available on crate feature alloc only.
impl ByteLen<Ia5StringOwned> for Ia5StringFmt
Available on crate feature
alloc only.Source§impl Clone for Ia5StringFmt
impl Clone for Ia5StringFmt
Source§fn clone(&self) -> Ia5StringFmt
fn clone(&self) -> Ia5StringFmt
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 Ia5StringFmt
impl Consistency for Ia5StringFmt
Source§open spec fn consistent(&self, v: Self::Val) -> bool
open spec fn consistent(&self, v: Self::Val) -> bool
{ ia5string_fmt().consistent(v) }Source§type Val = Ia5StringSpec
type Val = Ia5StringSpec
The type of values whose consistency is being checked.
Source§impl<'a> DerOrd<Ia5String<'a>> for Ia5StringFmt
impl<'a> DerOrd<Ia5String<'a>> for Ia5StringFmt
Source§proof fn lemma_der_serialize_len(&self, value: Ia5StringSpec)
proof fn lemma_der_serialize_len(&self, value: Ia5StringSpec)
Source§open spec fn der_remaining(&self, value: Ia5StringSpec, state: BytesDerState) -> Seq<u8>
open spec fn der_remaining(&self, value: Ia5StringSpec, state: BytesDerState) -> Seq<u8>
{ self.spec_serialize(value).skip(state.pos as int) }Source§open spec fn der_state_valid(&self, value: Ia5StringSpec, state: BytesDerState) -> bool
open spec fn der_state_valid(&self, value: Ia5StringSpec, state: BytesDerState) -> bool
{ state.pos <= self.spec_serialize(value).len() }Source§exec fn der_start(&self, s: &Ia5String<'a>) -> state : BytesDerState
exec fn der_start(&self, s: &Ia5String<'a>) -> state : BytesDerState
Source§impl DerState for Ia5StringFmt
impl DerState for Ia5StringFmt
type State = BytesDerState
Source§impl EquivSerializers for Ia5StringFmt
impl EquivSerializers for Ia5StringFmt
Source§impl GoodSerializer for Ia5StringFmt
impl GoodSerializer for Ia5StringFmt
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 Ia5StringFmt
impl NonMalleable for Ia5StringFmt
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 Ia5StringFmt
impl<'i> Parser<&'i [u8]> for Ia5StringFmt
Source§impl<'i> Prepare<Ia5String<'i>> for Ia5StringFmt
impl<'i> Prepare<Ia5String<'i>> for Ia5StringFmt
Source§impl Prepare<Ia5StringOwned> for Ia5StringFmt
Available on crate feature alloc only.
impl Prepare<Ia5StringOwned> for Ia5StringFmt
Available on crate feature
alloc only.Source§impl Productive for Ia5StringFmt
impl Productive for Ia5StringFmt
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 Ia5StringFmt
impl SPRoundTripDps for Ia5StringFmt
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 Ia5StringFmt
impl SafeParser for Ia5StringFmt
Source§impl<'i, Output: OutputBuf> Serializer<Output, Ia5String<'i>> for Ia5StringFmt
impl<'i, Output: OutputBuf> Serializer<Output, Ia5String<'i>> for Ia5StringFmt
Source§exec fn serialize_into(&self, v: &Ia5String<'i>, obuf: &mut Output)
exec fn serialize_into(&self, v: &Ia5String<'i>, obuf: &mut Output)
Source§impl<Output: OutputBuf> Serializer<Output, Ia5StringOwned> for Ia5StringFmt
Available on crate feature alloc only.
impl<Output: OutputBuf> Serializer<Output, Ia5StringOwned> for Ia5StringFmt
Available on crate feature
alloc only.Source§exec fn serialize_into(&self, v: &Ia5StringOwned, obuf: &mut Output)
exec fn serialize_into(&self, v: &Ia5StringOwned, obuf: &mut Output)
Source§impl SoundParser for Ia5StringFmt
impl SoundParser for Ia5StringFmt
Source§impl SpecByteLen for Ia5StringFmt
impl SpecByteLen for Ia5StringFmt
Source§impl SpecParser for Ia5StringFmt
impl SpecParser for Ia5StringFmt
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)>
{ ia5string_fmt().spec_parse(ibuf) }Source§type PVal = Ia5StringSpec
type PVal = Ia5StringSpec
The type of parsed values.
Source§impl SpecSerializer for Ia5StringFmt
impl SpecSerializer for Ia5StringFmt
Source§open spec fn spec_serialize(&self, v: Self::SVal) -> Seq<u8>
open spec fn spec_serialize(&self, v: Self::SVal) -> Seq<u8>
{ ia5string_fmt().spec_serialize(v) }Source§type SVal = Ia5StringSpec
type SVal = Ia5StringSpec
The type of values to be serialized.
Source§impl SpecSerializerDps for Ia5StringFmt
impl SpecSerializerDps for Ia5StringFmt
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>
{ ia5string_fmt().spec_serialize_dps(v, obuf) }Source§type SValue = Ia5StringSpec
type SValue = Ia5StringSpec
The type of values to be serialized.
impl Copy for Ia5StringFmt
Auto Trait Implementations§
impl Freeze for Ia5StringFmt
impl RefUnwindSafe for Ia5StringFmt
impl Send for Ia5StringFmt
impl Sync for Ia5StringFmt
impl Unpin for Ia5StringFmt
impl UnsafeUnpin for Ia5StringFmt
impl UnwindSafe for Ia5StringFmt
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() }