pub struct NatLengthFmt<const DER: bool = true>;Expand description
ASN.1 definite length format whose codomain is nat
Trait Implementations§
Source§impl<const DER: bool> Clone for NatLengthFmt<DER>
impl<const DER: bool> Clone for NatLengthFmt<DER>
Source§fn clone(&self) -> NatLengthFmt<DER>
fn clone(&self) -> NatLengthFmt<DER>
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<const DER: bool> Consistency for NatLengthFmt<DER>
impl<const DER: bool> Consistency for NatLengthFmt<DER>
Source§impl<const DER: bool> EquivSerializers for NatLengthFmt<DER>
impl<const DER: bool> EquivSerializers for NatLengthFmt<DER>
Source§impl<const DER: bool> EquivSerializersGeneral for NatLengthFmt<DER>
impl<const DER: bool> EquivSerializersGeneral for NatLengthFmt<DER>
Source§proof fn lemma_serialize_equiv(&self, v: Self::SVal, obuf: Seq<u8>)
proof fn lemma_serialize_equiv(&self, v: Self::SVal, obuf: Seq<u8>)
Source§fn equiv_general_inv(&self) -> bool
fn equiv_general_inv(&self) -> bool
Source§impl<const DER: bool> GoodSerializer for NatLengthFmt<DER>
impl<const DER: bool> GoodSerializer for NatLengthFmt<DER>
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<const DER: bool> NoLookAhead for NatLengthFmt<DER>
impl<const DER: bool> NoLookAhead for NatLengthFmt<DER>
Source§impl NonMalleable for NatLengthFmt<true>
impl NonMalleable for NatLengthFmt<true>
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<const DER: bool> NonTailFmt for NatLengthFmt<DER>
impl<const DER: bool> NonTailFmt for NatLengthFmt<DER>
Source§proof fn lemma_serialize_dps_prepend(&self, v: Self::SValue, obuf: Seq<u8>)
proof fn lemma_serialize_dps_prepend(&self, v: Self::SValue, obuf: Seq<u8>)
Source§proof fn lemma_serialize_dps_len(&self, v: Self::SValue, obuf: Seq<u8>)
proof fn lemma_serialize_dps_len(&self, v: Self::SValue, obuf: Seq<u8>)
Source§fn serialize_dps_inv(&self) -> bool
fn serialize_dps_inv(&self) -> bool
Source§impl<const DER: bool> Productive for NatLengthFmt<DER>
impl<const DER: bool> Productive for NatLengthFmt<DER>
Source§proof fn lemma_productive(&self, s: Seq<u8>)
proof fn lemma_productive(&self, s: Seq<u8>)
Source§fn productive_inv(&self) -> bool
fn productive_inv(&self) -> bool
Source§impl<const DER: bool> SPRoundTripDps for NatLengthFmt<DER>
impl<const DER: bool> SPRoundTripDps for NatLengthFmt<DER>
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<const DER: bool> SafeParser for NatLengthFmt<DER>
impl<const DER: bool> SafeParser for NatLengthFmt<DER>
Source§impl SoundParser for NatLengthFmt<true>
impl SoundParser for NatLengthFmt<true>
Source§impl<const DER: bool> SpecByteLen for NatLengthFmt<DER>
impl<const DER: bool> SpecByteLen for NatLengthFmt<DER>
Source§impl<const DER: bool> SpecParser for NatLengthFmt<DER>
impl<const DER: bool> SpecParser for NatLengthFmt<DER>
Source§impl<const DER: bool> SpecSerializer for NatLengthFmt<DER>
impl<const DER: bool> SpecSerializer for NatLengthFmt<DER>
Source§impl<const DER: bool> SpecSerializerDps for NatLengthFmt<DER>
impl<const DER: bool> SpecSerializerDps for NatLengthFmt<DER>
impl<const DER: bool> Copy for NatLengthFmt<DER>
Auto Trait Implementations§
impl<const DER: bool> Freeze for NatLengthFmt<DER>
impl<const DER: bool> RefUnwindSafe for NatLengthFmt<DER>
impl<const DER: bool> Send for NatLengthFmt<DER>
impl<const DER: bool> Sync for NatLengthFmt<DER>
impl<const DER: bool> Unpin for NatLengthFmt<DER>
impl<const DER: bool> UnsafeUnpin for NatLengthFmt<DER>
impl<const DER: bool> UnwindSafe for NatLengthFmt<DER>
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() }