pub struct Integer8Fmt;Expand description
ASN.1 INTEGER contents specialized to the i8 representation.
Every i8 value has a canonical one-octet two’s-complement encoding.
Trait Implementations§
Source§impl ByteLen<i8> for Integer8Fmt
impl ByteLen<i8> for Integer8Fmt
Source§impl Clone for Integer8Fmt
impl Clone for Integer8Fmt
Source§fn clone(&self) -> Integer8Fmt
fn clone(&self) -> Integer8Fmt
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 Integer8Fmt
impl Consistency for Integer8Fmt
Source§impl DerOrd<i8> for Integer8Fmt
impl DerOrd<i8> for Integer8Fmt
Source§proof fn lemma_der_serialize_len(&self, value: i8)
proof fn lemma_der_serialize_len(&self, value: i8)
Source§impl EquivSerializers for Integer8Fmt
impl EquivSerializers for Integer8Fmt
Source§impl GoodSerializer for Integer8Fmt
impl GoodSerializer for Integer8Fmt
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 Integer8Fmt
impl NonMalleable for Integer8Fmt
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 Integer8Fmt
impl<'i> Parser<&'i [u8]> for Integer8Fmt
Source§impl Prepare<i8> for Integer8Fmt
impl Prepare<i8> for Integer8Fmt
Source§impl Productive for Integer8Fmt
impl Productive for Integer8Fmt
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 SPRoundTripDps for Integer8Fmt
impl SPRoundTripDps for Integer8Fmt
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 Integer8Fmt
impl SafeParser for Integer8Fmt
Source§impl<Output: OutputBuf> Serializer<Output, i8> for Integer8Fmt
impl<Output: OutputBuf> Serializer<Output, i8> for Integer8Fmt
Source§exec fn serialize_into(&self, v: &i8, obuf: &mut Output)
exec fn serialize_into(&self, v: &i8, obuf: &mut Output)
Source§impl SoundParser for Integer8Fmt
impl SoundParser for Integer8Fmt
Source§impl SpecByteLen for Integer8Fmt
impl SpecByteLen for Integer8Fmt
Source§impl SpecParser for Integer8Fmt
impl SpecParser for Integer8Fmt
Source§impl SpecSerializer for Integer8Fmt
impl SpecSerializer for Integer8Fmt
Source§impl SpecSerializerDps for Integer8Fmt
impl SpecSerializerDps for Integer8Fmt
Source§impl ValueByteLen for Integer8Fmt
impl ValueByteLen for Integer8Fmt
Source§open spec fn value_byte_len(v: Self::T) -> nat
open spec fn value_byte_len(v: Self::T) -> nat
{ I8.byte_len(v) }Source§proof fn lemma_value_len_matches_byte_len(&self, v: Self::T)
proof fn lemma_value_len_matches_byte_len(&self, v: Self::T)
impl Copy for Integer8Fmt
Auto Trait Implementations§
impl Freeze for Integer8Fmt
impl RefUnwindSafe for Integer8Fmt
impl Send for Integer8Fmt
impl Sync for Integer8Fmt
impl Unpin for Integer8Fmt
impl UnsafeUnpin for Integer8Fmt
impl UnwindSafe for Integer8Fmt
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() }