pub struct ImplicitlyTaggedFmt<F>(pub Tag, pub F);Expand description
Const-constructible ASN.1 IMPLICIT tagging wrapper.
Tuple Fields§
§0: Tag§1: FTrait Implementations§
Source§impl<F, T> ByteLen<T> for ImplicitlyTaggedFmt<F>
impl<F, T> ByteLen<T> for ImplicitlyTaggedFmt<F>
Source§impl<F: Clone> Clone for ImplicitlyTaggedFmt<F>
impl<F: Clone> Clone for ImplicitlyTaggedFmt<F>
Source§impl<F> Consistency for ImplicitlyTaggedFmt<F>where
F: Retaggable + Consistency,
impl<F> Consistency for ImplicitlyTaggedFmt<F>where
F: Retaggable + Consistency,
Source§open spec fn consistent(&self, value: Self::Val) -> bool
open spec fn consistent(&self, value: Self::Val) -> bool
{ self.1.spec_retagged(self.0).consistent(value) }Source§type Val = <F as Consistency>::Val
type Val = <F as Consistency>::Val
The type of values whose consistency is being checked.
Source§impl<F, T> DerOrd<T> for ImplicitlyTaggedFmt<F>
impl<F, T> DerOrd<T> for ImplicitlyTaggedFmt<F>
Source§proof fn lemma_der_serialize_len(&self, value: T::V)
proof fn lemma_der_serialize_len(&self, value: T::V)
Source§open spec fn der_remaining(&self, value: T::V, state: <F as DerState>::State) -> Seq<u8>
open spec fn der_remaining(&self, value: T::V, state: <F as DerState>::State) -> Seq<u8>
{ self.1.spec_retagged(self.0).der_remaining(value, state) }Source§impl<F> DerState for ImplicitlyTaggedFmt<F>where
F: Retaggable + DerState,
impl<F> DerState for ImplicitlyTaggedFmt<F>where
F: Retaggable + DerState,
Source§impl<F> EquivSerializers for ImplicitlyTaggedFmt<F>where
F: Retaggable + EquivSerializers,
impl<F> EquivSerializers for ImplicitlyTaggedFmt<F>where
F: Retaggable + EquivSerializers,
Source§impl<F> EquivSerializersGeneral for ImplicitlyTaggedFmt<F>where
F: Retaggable + EquivSerializersGeneral,
impl<F> EquivSerializersGeneral for ImplicitlyTaggedFmt<F>where
F: Retaggable + EquivSerializersGeneral,
Source§open spec fn equiv_general_inv(&self) -> bool
open spec fn equiv_general_inv(&self) -> bool
{ self.1.spec_retagged(self.0).equiv_general_inv() }Source§proof fn lemma_serialize_equiv(&self, value: Self::SVal, obuf: Seq<u8>)
proof fn lemma_serialize_equiv(&self, value: Self::SVal, obuf: Seq<u8>)
Source§impl<F> GoodSerializer for ImplicitlyTaggedFmt<F>where
F: Retaggable + GoodSerializer,
impl<F> GoodSerializer for ImplicitlyTaggedFmt<F>where
F: Retaggable + GoodSerializer,
Source§open spec fn serialize_inv(&self) -> bool
open spec fn serialize_inv(&self) -> bool
{ self.1.spec_retagged(self.0).serialize_inv() }Source§proof fn lemma_serialize_len(&self, value: Self::SVal)
proof fn lemma_serialize_len(&self, value: Self::SVal)
Source§impl<Format> HasAsn1Start for ImplicitlyTaggedFmt<Format>where
Format: Retaggable + HasAsn1Start,
IMPLICIT tagging delegates parsing and its start domain to the concretely retagged format.
impl<Format> HasAsn1Start for ImplicitlyTaggedFmt<Format>where
Format: Retaggable + HasAsn1Start,
IMPLICIT tagging delegates parsing and its start domain to the concretely retagged format.
Source§open spec fn asn1_start(&self) -> Asn1StartDomain
open spec fn asn1_start(&self) -> Asn1StartDomain
{ self.1.spec_retagged(self.0).asn1_start() }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<F> NoLookAhead for ImplicitlyTaggedFmt<F>where
F: Retaggable + NoLookAhead,
impl<F> NoLookAhead for ImplicitlyTaggedFmt<F>where
F: Retaggable + NoLookAhead,
Source§open spec fn no_lookahead_inv(&self) -> bool
open spec fn no_lookahead_inv(&self) -> bool
{ self.1.spec_retagged(self.0).no_lookahead_inv() }Source§proof fn lemma_no_lookahead(&self, ibuf1: Seq<u8>, ibuf2: Seq<u8>)
proof fn lemma_no_lookahead(&self, ibuf1: Seq<u8>, ibuf2: Seq<u8>)
Source§impl<F> NonMalleable for ImplicitlyTaggedFmt<F>where
F: Retaggable + NonMalleable,
impl<F> NonMalleable for ImplicitlyTaggedFmt<F>where
F: Retaggable + NonMalleable,
Source§open spec fn nonmal_inv(&self) -> bool
open spec fn nonmal_inv(&self) -> bool
{ self.1.spec_retagged(self.0).nonmal_inv() }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§impl<F> NonTailFmt for ImplicitlyTaggedFmt<F>where
F: Retaggable + NonTailFmt,
impl<F> NonTailFmt for ImplicitlyTaggedFmt<F>where
F: Retaggable + NonTailFmt,
Source§open spec fn serialize_dps_inv(&self) -> bool
open spec fn serialize_dps_inv(&self) -> bool
{ self.1.spec_retagged(self.0).serialize_dps_inv() }Source§proof fn lemma_serialize_dps_prepend(&self, value: Self::SValue, obuf: Seq<u8>)
proof fn lemma_serialize_dps_prepend(&self, value: Self::SValue, obuf: Seq<u8>)
Source§proof fn lemma_serialize_dps_len(&self, value: Self::SValue, obuf: Seq<u8>)
proof fn lemma_serialize_dps_len(&self, value: Self::SValue, obuf: Seq<u8>)
Source§impl<Input, F> Parser<Input> for ImplicitlyTaggedFmt<F>
impl<Input, F> Parser<Input> for ImplicitlyTaggedFmt<F>
Source§impl<F, T> Prepare<T> for ImplicitlyTaggedFmt<F>
impl<F, T> Prepare<T> for ImplicitlyTaggedFmt<F>
Source§impl<F> Productive for ImplicitlyTaggedFmt<F>where
F: Retaggable + Productive,
impl<F> Productive for ImplicitlyTaggedFmt<F>where
F: Retaggable + Productive,
Source§open spec fn productive_inv(&self) -> bool
open spec fn productive_inv(&self) -> bool
{ self.1.spec_retagged(self.0).productive_inv() }Source§proof fn lemma_productive(&self, ibuf: Seq<u8>)
proof fn lemma_productive(&self, ibuf: Seq<u8>)
Source§impl<F: Retaggable> Retaggable for ImplicitlyTaggedFmt<F>
Allows IMPLICIT tagging to compose/chain through an existing IMPLICIT-tag wrapper.
impl<F: Retaggable> Retaggable for ImplicitlyTaggedFmt<F>
Allows IMPLICIT tagging to compose/chain through an existing IMPLICIT-tag wrapper.
The newer tag replaces the stored outer tag and the underlying format is retained; when used,
the underlying Retaggable implementation selects the correct primitive/constructed form.
Source§impl<F> SPRoundTripDps for ImplicitlyTaggedFmt<F>where
F: Retaggable + SPRoundTripDps,
impl<F> SPRoundTripDps for ImplicitlyTaggedFmt<F>where
F: Retaggable + SPRoundTripDps,
Source§open spec fn unambiguous(&self) -> bool
open spec fn unambiguous(&self) -> bool
{ self.1.spec_retagged(self.0).unambiguous() }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§impl<F> SafeParser for ImplicitlyTaggedFmt<F>where
F: Retaggable + SafeParser,
impl<F> SafeParser for ImplicitlyTaggedFmt<F>where
F: Retaggable + SafeParser,
Source§impl<Output, F, T> Serializer<Output, T> for ImplicitlyTaggedFmt<F>
impl<Output, F, T> Serializer<Output, T> for ImplicitlyTaggedFmt<F>
Source§open spec fn exec_inv(&self) -> bool
open spec fn exec_inv(&self) -> bool
{ <F as Serializer<Output, T>>::exec_inv(&self.1.spec_retagged(self.0)) }Source§exec fn serialize_into(&self, value: &T, obuf: &mut Output)
exec fn serialize_into(&self, value: &T, obuf: &mut Output)
Source§impl<F> SoundParser for ImplicitlyTaggedFmt<F>where
F: Retaggable + SoundParser,
impl<F> SoundParser for ImplicitlyTaggedFmt<F>where
F: Retaggable + SoundParser,
Source§impl<F> SpecByteLen for ImplicitlyTaggedFmt<F>where
F: Retaggable + SpecByteLen,
impl<F> SpecByteLen for ImplicitlyTaggedFmt<F>where
F: Retaggable + SpecByteLen,
Source§impl<F> SpecParser for ImplicitlyTaggedFmt<F>where
F: Retaggable + SpecParser,
impl<F> SpecParser for ImplicitlyTaggedFmt<F>where
F: Retaggable + SpecParser,
Source§impl<F> SpecSerializer for ImplicitlyTaggedFmt<F>where
F: Retaggable + SpecSerializer,
impl<F> SpecSerializer for ImplicitlyTaggedFmt<F>where
F: Retaggable + SpecSerializer,
Source§open spec fn spec_serialize(&self, value: Self::SVal) -> Seq<u8>
open spec fn spec_serialize(&self, value: Self::SVal) -> Seq<u8>
{ self.1.spec_retagged(self.0).spec_serialize(value) }Source§type SVal = <F as SpecSerializer>::SVal
type SVal = <F as SpecSerializer>::SVal
The type of values to be serialized.
Source§impl<F> SpecSerializerDps for ImplicitlyTaggedFmt<F>where
F: Retaggable + SpecSerializerDps,
impl<F> SpecSerializerDps for ImplicitlyTaggedFmt<F>where
F: Retaggable + SpecSerializerDps,
impl<F: Copy> Copy for ImplicitlyTaggedFmt<F>
Auto Trait Implementations§
impl<F> Freeze for ImplicitlyTaggedFmt<F>where
F: Freeze,
impl<F> RefUnwindSafe for ImplicitlyTaggedFmt<F>where
F: RefUnwindSafe,
impl<F> Send for ImplicitlyTaggedFmt<F>where
F: Send,
impl<F> Sync for ImplicitlyTaggedFmt<F>where
F: Sync,
impl<F> Unpin for ImplicitlyTaggedFmt<F>where
F: Unpin,
impl<F> UnsafeUnpin for ImplicitlyTaggedFmt<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for ImplicitlyTaggedFmt<F>where
F: UnwindSafe,
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() }