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