pub struct BerEndFmt;Expand description
Zero-width boundary marker for the contents of a schema-defined BER constructed value.
It succeeds at the end of a definite-length input or immediately before EOC. In the latter case it deliberately leaves EOC unconsumed for the enclosing indefinite-length framing combinator. Serialization emits no bytes.
Trait Implementations§
Source§impl AdmitsUniqueVal for BerEndFmt
impl AdmitsUniqueVal for BerEndFmt
Source§proof fn lemma_unique_consistent_val(&self, _left: Self::Val, _right: Self::Val)
proof fn lemma_unique_consistent_val(&self, _left: Self::Val, _right: Self::Val)
Source§impl Consistency for BerEndFmt
impl Consistency for BerEndFmt
Source§impl EquivSerializers for BerEndFmt
impl EquivSerializers for BerEndFmt
Source§impl GoodSerializer for BerEndFmt
impl GoodSerializer for BerEndFmt
Source§proof fn lemma_serialize_len(&self, _value: Self::SVal)
proof fn lemma_serialize_len(&self, _value: Self::SVal)
Source§fn serialize_inv(&self) -> bool
fn serialize_inv(&self) -> bool
Source§impl HasAsn1Start for BerEndFmt
BER_END recognizes either EOF or an EOC prefix without consuming it.
impl HasAsn1Start for BerEndFmt
BER_END recognizes either EOF or an EOC prefix without consuming it.
Source§open spec fn asn1_start(&self) -> Asn1StartDomain
open spec fn asn1_start(&self) -> Asn1StartDomain
{ asn1_start_ber_boundary() }Source§proof fn lemma_parse_implies_asn1_start(&self, input: Seq<u8>)
proof fn lemma_parse_implies_asn1_start(&self, input: Seq<u8>)
Source§impl Productive for BerEndFmt
impl Productive for BerEndFmt
Source§open spec fn productive_inv(&self) -> bool
open spec fn productive_inv(&self) -> bool
{ false }Source§proof fn lemma_productive(&self, _input: Seq<u8>)
proof fn lemma_productive(&self, _input: Seq<u8>)
Source§impl SPRoundTripDps for BerEndFmt
impl SPRoundTripDps for BerEndFmt
Source§proof fn theorem_serialize_dps_parse_roundtrip(&self, _value: Self::T, _obuf: Seq<u8>)
proof fn theorem_serialize_dps_parse_roundtrip(&self, _value: Self::T, _obuf: Seq<u8>)
Source§fn unambiguous(&self) -> bool
fn unambiguous(&self) -> bool
Source§impl SafeParser for BerEndFmt
impl SafeParser for BerEndFmt
Source§impl<Output: OutputBuf> Serializer<Output, ()> for BerEndFmt
impl<Output: OutputBuf> Serializer<Output, ()> for BerEndFmt
Source§exec fn serialize_into(&self, _value: &(), _obuf: &mut Output)
exec fn serialize_into(&self, _value: &(), _obuf: &mut Output)
Source§impl SpecByteLen for BerEndFmt
impl SpecByteLen for BerEndFmt
Source§impl SpecParser for BerEndFmt
impl SpecParser for BerEndFmt
Source§impl SpecSerializer for BerEndFmt
impl SpecSerializer for BerEndFmt
Source§impl SpecSerializerDps for BerEndFmt
impl SpecSerializerDps for BerEndFmt
impl Copy for BerEndFmt
Auto Trait Implementations§
impl Freeze for BerEndFmt
impl RefUnwindSafe for BerEndFmt
impl Send for BerEndFmt
impl Sync for BerEndFmt
impl Unpin for BerEndFmt
impl UnsafeUnpin for BerEndFmt
impl UnwindSafe for BerEndFmt
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> 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() }