pub struct CborHeadFmt<const DET: bool>;Expand description
One normalized CBOR head.
DET = true rejects nonminimal integer, length, and tag arguments and
rejects indefinite-length heads. Floating-point payload widths remain an
explicit part of CborFloat and are not shortened here.
Trait Implementations§
Source§impl<const DET: bool> Clone for CborHeadFmt<DET>
impl<const DET: bool> Clone for CborHeadFmt<DET>
Source§fn clone(&self) -> CborHeadFmt<DET>
fn clone(&self) -> CborHeadFmt<DET>
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 DET: bool> Consistency for CborHeadFmt<DET>
impl<const DET: bool> Consistency for CborHeadFmt<DET>
Source§impl<const DET: bool> Debug for CborHeadFmt<DET>
impl<const DET: bool> Debug for CborHeadFmt<DET>
Source§impl<const DET: bool> EquivSerializers for CborHeadFmt<DET>
impl<const DET: bool> EquivSerializers for CborHeadFmt<DET>
Source§impl<const DET: bool> EquivSerializersGeneral for CborHeadFmt<DET>
impl<const DET: bool> EquivSerializersGeneral for CborHeadFmt<DET>
Source§proof fn lemma_serialize_equiv(&self, value: Self::SVal, out: Seq<u8>)
proof fn lemma_serialize_equiv(&self, value: Self::SVal, out: Seq<u8>)
Source§fn equiv_general_inv(&self) -> bool
fn equiv_general_inv(&self) -> bool
Source§impl<const DET: bool> GoodSerializer for CborHeadFmt<DET>
impl<const DET: bool> GoodSerializer for CborHeadFmt<DET>
Source§proof fn lemma_serialize_len(&self, value: Self::SVal)
proof fn lemma_serialize_len(&self, value: Self::SVal)
Source§fn serialize_inv(&self) -> bool
fn serialize_inv(&self) -> bool
Source§impl<const DET: bool> NoLookAhead for CborHeadFmt<DET>
impl<const DET: bool> NoLookAhead for CborHeadFmt<DET>
Source§impl NonMalleable for CborHeadFmt<true>
impl NonMalleable for CborHeadFmt<true>
Source§proof fn lemma_parse_non_malleable(&self, left: Seq<u8>, right: Seq<u8>)
proof fn lemma_parse_non_malleable(&self, left: Seq<u8>, right: Seq<u8>)
Source§fn nonmal_inv(&self) -> bool
fn nonmal_inv(&self) -> bool
Source§impl<const DET: bool> NonTailFmt for CborHeadFmt<DET>
impl<const DET: bool> NonTailFmt for CborHeadFmt<DET>
Source§proof fn lemma_serialize_dps_prepend(&self, value: Self::SValue, out: Seq<u8>)
proof fn lemma_serialize_dps_prepend(&self, value: Self::SValue, out: Seq<u8>)
Source§proof fn lemma_serialize_dps_len(&self, value: Self::SValue, out: Seq<u8>)
proof fn lemma_serialize_dps_len(&self, value: Self::SValue, out: Seq<u8>)
Source§fn serialize_dps_inv(&self) -> bool
fn serialize_dps_inv(&self) -> bool
Source§impl<const DET: bool> Productive for CborHeadFmt<DET>
impl<const DET: bool> Productive for CborHeadFmt<DET>
Source§proof fn lemma_productive(&self, input: Seq<u8>)
proof fn lemma_productive(&self, input: Seq<u8>)
Source§fn productive_inv(&self) -> bool
fn productive_inv(&self) -> bool
Source§impl<const DET: bool> SPRoundTripDps for CborHeadFmt<DET>
impl<const DET: bool> SPRoundTripDps for CborHeadFmt<DET>
Source§proof fn theorem_serialize_dps_parse_roundtrip(&self, value: Self::T, out: Seq<u8>)
proof fn theorem_serialize_dps_parse_roundtrip(&self, value: Self::T, out: Seq<u8>)
Source§fn unambiguous(&self) -> bool
fn unambiguous(&self) -> bool
Source§impl<const DET: bool> SafeParser for CborHeadFmt<DET>
impl<const DET: bool> SafeParser for CborHeadFmt<DET>
Source§impl<Output: OutputBuf, const DET: bool> Serializer<Output, CborHead> for CborHeadFmt<DET>
impl<Output: OutputBuf, const DET: bool> Serializer<Output, CborHead> for CborHeadFmt<DET>
Source§exec fn serialize_into(&self, head: &CborHead, out: &mut Output)
exec fn serialize_into(&self, head: &CborHead, out: &mut Output)
Source§impl SoundParser for CborHeadFmt<true>
impl SoundParser for CborHeadFmt<true>
Source§impl<const DET: bool> SpecByteLen for CborHeadFmt<DET>
impl<const DET: bool> SpecByteLen for CborHeadFmt<DET>
Source§impl<const DET: bool> SpecParser for CborHeadFmt<DET>
impl<const DET: bool> SpecParser for CborHeadFmt<DET>
Source§impl<const DET: bool> SpecSerializer for CborHeadFmt<DET>
impl<const DET: bool> SpecSerializer for CborHeadFmt<DET>
Source§impl<const DET: bool> SpecSerializerDps for CborHeadFmt<DET>
impl<const DET: bool> SpecSerializerDps for CborHeadFmt<DET>
impl<const DET: bool> Copy for CborHeadFmt<DET>
Auto Trait Implementations§
impl<const DET: bool> Freeze for CborHeadFmt<DET>
impl<const DET: bool> RefUnwindSafe for CborHeadFmt<DET>
impl<const DET: bool> Send for CborHeadFmt<DET>
impl<const DET: bool> Sync for CborHeadFmt<DET>
impl<const DET: bool> Unpin for CborHeadFmt<DET>
impl<const DET: bool> UnsafeUnpin for CborHeadFmt<DET>
impl<const DET: bool> UnwindSafe for CborHeadFmt<DET>
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<VERUS_SPEC__A> DebugSpec for VERUS_SPEC__A
impl<VERUS_SPEC__A> DebugSpec for VERUS_SPEC__A
§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() }