pub struct BerAnyFmt<const LIMIT: usize>;Expand description
BER ANY/open type with bounded nesting for indefinite-length constructed values.
Parsing accepts definite values and recursively framed indefinite constructed values. Serialization is normalized to a definite-length encoding.
Trait Implementations§
Source§impl<const LIMIT: usize> ByteLen<AnyOwned> for BerAnyFmt<LIMIT>
Available on crate feature alloc only.
impl<const LIMIT: usize> ByteLen<AnyOwned> for BerAnyFmt<LIMIT>
Available on crate feature
alloc only.Source§impl<const LIMIT: usize> Consistency for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> Consistency for BerAnyFmt<LIMIT>
Source§impl<const LIMIT: usize> EquivSerializers for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> EquivSerializers for BerAnyFmt<LIMIT>
Source§impl<const LIMIT: usize> EquivSerializersGeneral for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> EquivSerializersGeneral for BerAnyFmt<LIMIT>
Source§proof fn lemma_serialize_equiv(&self, value: AnySpec, obuf: Seq<u8>)
proof fn lemma_serialize_equiv(&self, value: AnySpec, obuf: Seq<u8>)
Source§fn equiv_general_inv(&self) -> bool
fn equiv_general_inv(&self) -> bool
Source§impl<const LIMIT: usize> GoodSerializer for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> GoodSerializer for BerAnyFmt<LIMIT>
Source§proof fn lemma_serialize_len(&self, value: AnySpec)
proof fn lemma_serialize_len(&self, value: AnySpec)
Source§fn serialize_inv(&self) -> bool
fn serialize_inv(&self) -> bool
Source§impl<const LIMIT: usize> HasAsn1Start for BerAnyFmt<LIMIT>
Recursive BER ANY accepts every complete tag except EOC.
impl<const LIMIT: usize> HasAsn1Start for BerAnyFmt<LIMIT>
Recursive BER ANY accepts every complete tag except EOC.
Source§open spec fn asn1_start(&self) -> Asn1StartDomain
open spec fn asn1_start(&self) -> Asn1StartDomain
{ asn1_start_any_non_eoc() }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<const LIMIT: usize> NonTailFmt for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> NonTailFmt for BerAnyFmt<LIMIT>
Source§proof fn lemma_serialize_dps_prepend(&self, value: AnySpec, obuf: Seq<u8>)
proof fn lemma_serialize_dps_prepend(&self, value: AnySpec, obuf: Seq<u8>)
Source§proof fn lemma_serialize_dps_len(&self, value: AnySpec, obuf: Seq<u8>)
proof fn lemma_serialize_dps_len(&self, value: AnySpec, obuf: Seq<u8>)
Source§fn serialize_dps_inv(&self) -> bool
fn serialize_dps_inv(&self) -> bool
Source§impl<'i, const LIMIT: usize> Parser<&'i [u8]> for BerAnyFmt<LIMIT>
Available on crate feature alloc only.
impl<'i, const LIMIT: usize> Parser<&'i [u8]> for BerAnyFmt<LIMIT>
Available on crate feature
alloc only.Source§impl<const LIMIT: usize> Prepare<AnyOwned> for BerAnyFmt<LIMIT>
Available on crate feature alloc only.
impl<const LIMIT: usize> Prepare<AnyOwned> for BerAnyFmt<LIMIT>
Available on crate feature
alloc only.Source§impl<const LIMIT: usize> Productive for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> Productive for BerAnyFmt<LIMIT>
Source§proof fn lemma_productive(&self, input: Seq<u8>)
proof fn lemma_productive(&self, input: Seq<u8>)
Source§fn productive_inv(&self) -> bool
fn productive_inv(&self) -> bool
Source§impl<const LIMIT: usize> SPRoundTripDps for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> SPRoundTripDps for BerAnyFmt<LIMIT>
Source§proof fn theorem_serialize_dps_parse_roundtrip(&self, value: AnySpec, obuf: Seq<u8>)
proof fn theorem_serialize_dps_parse_roundtrip(&self, value: AnySpec, obuf: Seq<u8>)
Source§fn unambiguous(&self) -> bool
fn unambiguous(&self) -> bool
Source§impl<const LIMIT: usize> SafeParser for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> SafeParser for BerAnyFmt<LIMIT>
Source§impl<Output: OutputBuf, const LIMIT: usize> Serializer<Output, AnyOwned> for BerAnyFmt<LIMIT>
Available on crate feature alloc only.
impl<Output: OutputBuf, const LIMIT: usize> Serializer<Output, AnyOwned> for BerAnyFmt<LIMIT>
Available on crate feature
alloc only.Source§exec fn serialize_into(&self, value: &AnyOwned, obuf: &mut Output)
exec fn serialize_into(&self, value: &AnyOwned, obuf: &mut Output)
Source§impl<const LIMIT: usize> SpecByteLen for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> SpecByteLen for BerAnyFmt<LIMIT>
Source§impl<const LIMIT: usize> SpecParser for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> SpecParser for BerAnyFmt<LIMIT>
Source§impl<const LIMIT: usize> SpecSerializer for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> SpecSerializer for BerAnyFmt<LIMIT>
Source§impl<const LIMIT: usize> SpecSerializerDps for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> SpecSerializerDps for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> Copy for BerAnyFmt<LIMIT>
Auto Trait Implementations§
impl<const LIMIT: usize> Freeze for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> RefUnwindSafe for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> Send for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> Sync for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> Unpin for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> UnsafeUnpin for BerAnyFmt<LIMIT>
impl<const LIMIT: usize> UnwindSafe for BerAnyFmt<LIMIT>
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() }