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.
impl Copy for PrintableStringFmt
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)[state.pos..] }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§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§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§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.
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§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() }