pub struct Integer16Fmt;Expand description
ASN.1 INTEGER contents specialized to the i16 representation.
Values in the i8 range use one octet; all other values use two
big-endian octets. Redundant two-octet encodings are rejected.
Trait Implementations§
Source§impl ByteLen<i16> for Integer16Fmt
impl ByteLen<i16> for Integer16Fmt
Source§impl Clone for Integer16Fmt
impl Clone for Integer16Fmt
Source§fn clone(&self) -> Integer16Fmt
fn clone(&self) -> Integer16Fmt
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 Integer16Fmt
impl Consistency for Integer16Fmt
Source§impl DerOrd<i16> for Integer16Fmt
impl DerOrd<i16> for Integer16Fmt
Source§proof fn lemma_der_serialize_len(&self, value: i16)
proof fn lemma_der_serialize_len(&self, value: i16)
Source§open spec fn der_remaining(&self, value: i16, state: Integer16DerState) -> Seq<u8>
open spec fn der_remaining(&self, value: i16, state: Integer16DerState) -> Seq<u8>
{ self.spec_serialize(value).skip(state.pos as int) }Source§open spec fn der_state_valid(&self, value: i16, state: Integer16DerState) -> bool
open spec fn der_state_valid(&self, value: i16, state: Integer16DerState) -> bool
{
&&& state.pos <= state.len <= 2
&&& state.len == self.spec_serialize(value).len()
&&& state.bytes@.take(state.len as int) == self.spec_serialize(value)
}Source§exec fn der_start(&self, i: &i16) -> state : Integer16DerState
exec fn der_start(&self, i: &i16) -> state : Integer16DerState
Source§impl DerState for Integer16Fmt
impl DerState for Integer16Fmt
type State = Integer16DerState
Source§impl EquivSerializers for Integer16Fmt
impl EquivSerializers for Integer16Fmt
Source§impl GoodSerializer for Integer16Fmt
impl GoodSerializer for Integer16Fmt
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 Integer16Fmt
impl NonMalleable for Integer16Fmt
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 Integer16Fmt
impl<'i> Parser<&'i [u8]> for Integer16Fmt
Source§impl Prepare<i16> for Integer16Fmt
impl Prepare<i16> for Integer16Fmt
Source§impl Productive for Integer16Fmt
impl Productive for Integer16Fmt
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 Integer16Fmt
impl SPRoundTripDps for Integer16Fmt
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 Integer16Fmt
impl SafeParser for Integer16Fmt
Source§impl<Output: OutputBuf> Serializer<Output, i16> for Integer16Fmt
impl<Output: OutputBuf> Serializer<Output, i16> for Integer16Fmt
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 Integer16Fmt
impl SoundParser for Integer16Fmt
Source§impl SpecByteLen for Integer16Fmt
impl SpecByteLen for Integer16Fmt
Source§impl SpecParser for Integer16Fmt
impl SpecParser for Integer16Fmt
Source§impl SpecSerializer for Integer16Fmt
impl SpecSerializer for Integer16Fmt
Source§impl SpecSerializerDps for Integer16Fmt
impl SpecSerializerDps for Integer16Fmt
impl Copy for Integer16Fmt
Auto Trait Implementations§
impl Freeze for Integer16Fmt
impl RefUnwindSafe for Integer16Fmt
impl Send for Integer16Fmt
impl Sync for Integer16Fmt
impl Unpin for Integer16Fmt
impl UnsafeUnpin for Integer16Fmt
impl UnwindSafe for Integer16Fmt
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() }