pub struct Explicit<T, const TAG: u32> { /* private fields */ }
Expand description
Explicit
is a type which wraps another ASN.1 type, indicating that the tag is an ASN.1
EXPLICIT
. This will generally be used with Option
or Choice
.
Implementations§
Trait Implementations§
source§impl<'a, T: Asn1Readable<'a>, U: Asn1DefinedByReadable<'a, T>, const TAG: u32> Asn1DefinedByReadable<'a, T> for Explicit<U, { TAG }>
impl<'a, T: Asn1Readable<'a>, U: Asn1DefinedByReadable<'a, T>, const TAG: u32> Asn1DefinedByReadable<'a, T> for Explicit<U, { TAG }>
fn parse(item: T, parser: &mut Parser<'a>) -> ParseResult<Self>
source§impl<T: Asn1Writable, U: Asn1DefinedByWritable<T>, const TAG: u32> Asn1DefinedByWritable<T> for Explicit<U, { TAG }>
impl<T: Asn1Writable, U: Asn1DefinedByWritable<T>, const TAG: u32> Asn1DefinedByWritable<T> for Explicit<U, { TAG }>
source§impl<T: PartialEq, const TAG: u32> PartialEq for Explicit<T, TAG>
impl<T: PartialEq, const TAG: u32> PartialEq for Explicit<T, TAG>
source§impl<'a, T: Asn1Readable<'a>, const TAG: u32> SimpleAsn1Readable<'a> for Explicit<T, { TAG }>
impl<'a, T: Asn1Readable<'a>, const TAG: u32> SimpleAsn1Readable<'a> for Explicit<T, { TAG }>
const TAG: Tag = _
fn parse_data(data: &'a [u8]) -> ParseResult<Self>
source§impl<T: Asn1Writable, const TAG: u32> SimpleAsn1Writable for Explicit<T, { TAG }>
impl<T: Asn1Writable, const TAG: u32> SimpleAsn1Writable for Explicit<T, { TAG }>
const TAG: Tag = _
fn write_data(&self, dest: &mut WriteBuf) -> WriteResult
impl<T: Eq, const TAG: u32> Eq for Explicit<T, TAG>
impl<T, const TAG: u32> StructuralPartialEq for Explicit<T, TAG>
Auto Trait Implementations§
impl<T, const TAG: u32> RefUnwindSafe for Explicit<T, TAG>where
T: RefUnwindSafe,
impl<T, const TAG: u32> Send for Explicit<T, TAG>where
T: Send,
impl<T, const TAG: u32> Sync for Explicit<T, TAG>where
T: Sync,
impl<T, const TAG: u32> Unpin for Explicit<T, TAG>where
T: Unpin,
impl<T, const TAG: u32> UnwindSafe for Explicit<T, TAG>where
T: UnwindSafe,
Blanket Implementations§
source§impl<'a, T> Asn1Readable<'a> for Twhere
T: SimpleAsn1Readable<'a>,
impl<'a, T> Asn1Readable<'a> for Twhere
T: SimpleAsn1Readable<'a>,
source§impl<T> Asn1Writable for Twhere
T: SimpleAsn1Writable,
impl<T> Asn1Writable for Twhere
T: SimpleAsn1Writable,
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