pub struct I16Le;Expand description
Little-endian signed 16-bit integer.
Defined as Mapped { inner: Fixed::<2>, mapper: (i16_le_from_bytes, i16_le_to_bytes) }.
Trait Implementations§
Source§impl Consistency for I16Le
impl Consistency for I16Le
Source§impl EquivSerializers for I16Le
impl EquivSerializers for I16Le
Source§impl EquivSerializersGeneral for I16Le
impl EquivSerializersGeneral for I16Le
Source§proof fn lemma_serialize_equiv(&self, v: i16, obuf: Seq<u8>)
proof fn lemma_serialize_equiv(&self, v: i16, obuf: Seq<u8>)
Source§fn equiv_general_inv(&self) -> bool
fn equiv_general_inv(&self) -> bool
Source§impl GoodSerializer for I16Le
impl GoodSerializer for I16Le
Source§proof fn lemma_serialize_len(&self, v: i16)
proof fn lemma_serialize_len(&self, v: i16)
Source§fn serialize_inv(&self) -> bool
fn serialize_inv(&self) -> bool
Source§impl LeafNonMalleable for I16Le
impl LeafNonMalleable for I16Le
Source§proof fn nonmal_leaf_inv(&self)
proof fn nonmal_leaf_inv(&self)
Source§impl MinMaxByteLen for I16Le
impl MinMaxByteLen for I16Le
Source§impl NoLookAhead for I16Le
impl NoLookAhead for I16Le
Source§impl NonMalleable for I16Le
impl NonMalleable for I16Le
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 NonTailFmt for I16Le
impl NonTailFmt for I16Le
Source§proof fn lemma_serialize_dps_prepend(&self, v: i16, obuf: Seq<u8>)
proof fn lemma_serialize_dps_prepend(&self, v: i16, obuf: Seq<u8>)
Source§proof fn lemma_serialize_dps_len(&self, v: i16, obuf: Seq<u8>)
proof fn lemma_serialize_dps_len(&self, v: i16, obuf: Seq<u8>)
Source§fn serialize_dps_inv(&self) -> bool
fn serialize_dps_inv(&self) -> bool
Source§impl Productive for I16Le
impl Productive for I16Le
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 I16Le
impl SPRoundTripDps for I16Le
Source§proof fn theorem_serialize_dps_parse_roundtrip(&self, v: i16, obuf: Seq<u8>)
proof fn theorem_serialize_dps_parse_roundtrip(&self, v: i16, obuf: Seq<u8>)
Source§fn unambiguous(&self) -> bool
fn unambiguous(&self) -> bool
Source§impl SafeParser for I16Le
impl SafeParser for I16Le
Source§impl<Output: OutputBuf> Serializer<Output, i16> for I16Le
impl<Output: OutputBuf> Serializer<Output, i16> for I16Le
Source§exec fn serialize_into(&self, v: &i16, obuf: &mut Output)
exec fn serialize_into(&self, v: &i16, obuf: &mut Output)
Source§impl SoundParser for I16Le
impl SoundParser for I16Le
Source§impl SpecByteLen for I16Le
impl SpecByteLen for I16Le
Source§impl SpecParser for I16Le
impl SpecParser for I16Le
Source§impl SpecSerializer for I16Le
impl SpecSerializer for I16Le
Source§impl SpecSerializerDps for I16Le
impl SpecSerializerDps for I16Le
Source§impl StaticByteLen for I16Le
impl StaticByteLen for I16Le
Source§open spec fn static_byte_len() -> nat
open spec fn static_byte_len() -> nat
{ U16_BYTE_LEN as nat }Source§proof fn lemma_static_len_matches_byte_len(&self, v: Self::T)
proof fn lemma_static_len_matches_byte_len(&self, v: Self::T)
Source§impl ValueByteLen for I16Le
impl ValueByteLen for I16Le
Source§open spec fn value_byte_len(_v: Self::T) -> nat
open spec fn value_byte_len(_v: Self::T) -> nat
{ U16_BYTE_LEN as nat }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 I16Le
Auto Trait Implementations§
impl Freeze for I16Le
impl RefUnwindSafe for I16Le
impl Send for I16Le
impl Sync for I16Le
impl Unpin for I16Le
impl UnsafeUnpin for I16Le
impl UnwindSafe for I16Le
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() }