pub struct RealFmt<const DER: bool = true>;Expand description
ASN.1 REAL contents format.
DER = true accepts only the canonical DER forms. DER = false accepts the
additional binary and ISO 6093 decimal forms permitted by BER.
Trait Implementations§
Source§impl<const DER: bool> Consistency for RealFmt<DER>
impl<const DER: bool> Consistency for RealFmt<DER>
Source§impl<'a> DerOrd<Real<'a>> for RealFmt<true>
impl<'a> DerOrd<Real<'a>> for RealFmt<true>
Source§proof fn lemma_der_serialize_len(&self, value: Seq<u8>)
proof fn lemma_der_serialize_len(&self, value: Seq<u8>)
Source§open spec fn der_remaining(&self, value: Seq<u8>, state: BytesDerState) -> Seq<u8>
open spec fn der_remaining(&self, value: Seq<u8>, state: BytesDerState) -> Seq<u8>
{ self.spec_serialize(value).skip(state.pos as int) }Source§open spec fn der_state_valid(&self, value: Seq<u8>, state: BytesDerState) -> bool
open spec fn der_state_valid(&self, value: Seq<u8>, state: BytesDerState) -> bool
{ state.pos <= self.spec_serialize(value).len() }Source§exec fn der_start(&self, r: &Real<'a, true>) -> state : BytesDerState
exec fn der_start(&self, r: &Real<'a, true>) -> state : BytesDerState
Source§impl<const DER: bool> EquivSerializers for RealFmt<DER>
impl<const DER: bool> EquivSerializers for RealFmt<DER>
Source§impl<const DER: bool> GoodSerializer for RealFmt<DER>
impl<const DER: bool> GoodSerializer for RealFmt<DER>
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<const DER: bool> NonMalleable for RealFmt<DER>
impl<const DER: bool> NonMalleable for RealFmt<DER>
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<const DER: bool> Productive for RealFmt<DER>
impl<const DER: bool> Productive for RealFmt<DER>
Source§open spec fn productive_inv(&self) -> bool
open spec fn productive_inv(&self) -> bool
{ false }Source§proof fn lemma_productive(&self, _ibuf: Seq<u8>)
proof fn lemma_productive(&self, _ibuf: Seq<u8>)
Source§impl<const DER: bool> SPRoundTripDps for RealFmt<DER>
impl<const DER: bool> SPRoundTripDps for RealFmt<DER>
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<const DER: bool> SafeParser for RealFmt<DER>
impl<const DER: bool> SafeParser for RealFmt<DER>
Source§impl<'a, Output: OutputBuf, const DER: bool> Serializer<Output, Real<'a, DER>> for RealFmt<DER>
impl<'a, Output: OutputBuf, const DER: bool> Serializer<Output, Real<'a, DER>> for RealFmt<DER>
Source§exec fn serialize_into(&self, v: &Real<'a, DER>, obuf: &mut Output)
exec fn serialize_into(&self, v: &Real<'a, DER>, obuf: &mut Output)
Source§impl<const DER: bool> SoundParser for RealFmt<DER>
impl<const DER: bool> SoundParser for RealFmt<DER>
Source§impl<const DER: bool> SpecByteLen for RealFmt<DER>
impl<const DER: bool> SpecByteLen for RealFmt<DER>
Source§impl<const DER: bool> SpecParser for RealFmt<DER>
impl<const DER: bool> SpecParser for RealFmt<DER>
Source§impl<const DER: bool> SpecSerializer for RealFmt<DER>
impl<const DER: bool> SpecSerializer for RealFmt<DER>
Source§impl<const DER: bool> SpecSerializerDps for RealFmt<DER>
impl<const DER: bool> SpecSerializerDps for RealFmt<DER>
impl<const DER: bool> Copy for RealFmt<DER>
Auto Trait Implementations§
impl<const DER: bool> Freeze for RealFmt<DER>
impl<const DER: bool> RefUnwindSafe for RealFmt<DER>
impl<const DER: bool> Send for RealFmt<DER>
impl<const DER: bool> Sync for RealFmt<DER>
impl<const DER: bool> Unpin for RealFmt<DER>
impl<const DER: bool> UnsafeUnpin for RealFmt<DER>
impl<const DER: bool> UnwindSafe for RealFmt<DER>
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() }