pub struct U16Be;Expand description
Big-endian unsigned 16-bit integer.
Defined as Mapped { inner: Fixed::<2>, mapper: (u16_be_from_bytes, u16_be_to_bytes) }.
Trait Implementations§
Source§impl Consistency for U16Be
impl Consistency for U16Be
impl Copy for U16Be
Source§impl EquivSerializers for U16Be
impl EquivSerializers for U16Be
Source§impl EquivSerializersGeneral for U16Be
impl EquivSerializersGeneral for U16Be
Source§impl GoodSerializer for U16Be
impl GoodSerializer for U16Be
Source§proof fn lemma_serialize_len(&self, v: u16)
proof fn lemma_serialize_len(&self, v: u16)
Source§fn serialize_inv(&self) -> bool
fn serialize_inv(&self) -> bool
Source§impl LeafNonMalleable for U16Be
impl LeafNonMalleable for U16Be
Source§proof fn nonmal_leaf_inv(&self)
proof fn nonmal_leaf_inv(&self)
Source§impl MinMaxByteLen for U16Be
impl MinMaxByteLen for U16Be
Source§impl NoLookAhead for U16Be
impl NoLookAhead for U16Be
Source§impl NonMalleable for U16Be
impl NonMalleable for U16Be
Source§impl NonTailFmt for U16Be
impl NonTailFmt for U16Be
Source§impl Productive for U16Be
impl Productive for U16Be
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 U16Be
impl SPRoundTripDps for U16Be
Source§impl SafeParser for U16Be
impl SafeParser for U16Be
Source§impl<Output: OutputBuf> Serializer<Output, u16> for U16Be
impl<Output: OutputBuf> Serializer<Output, u16> for U16Be
Source§exec fn serialize_into(&self, v: &u16, obuf: &mut Output)
exec fn serialize_into(&self, v: &u16, obuf: &mut Output)
Source§impl SoundParser for U16Be
impl SoundParser for U16Be
Source§impl SpecByteLen for U16Be
impl SpecByteLen for U16Be
Source§impl SpecParser for U16Be
impl SpecParser for U16Be
Source§impl SpecSerializer for U16Be
impl SpecSerializer for U16Be
Source§impl SpecSerializerDps for U16Be
impl SpecSerializerDps for U16Be
Source§impl StaticByteLen for U16Be
impl StaticByteLen for U16Be
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 U16Be
impl ValueByteLen for U16Be
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)
Auto Trait Implementations§
impl Freeze for U16Be
impl RefUnwindSafe for U16Be
impl Send for U16Be
impl Sync for U16Be
impl Unpin for U16Be
impl UnsafeUnpin for U16Be
impl UnwindSafe for U16Be
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() }