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