pub struct Asn1 {
pub class: TagClass,
pub number: u32,
pub constructed: bool,
pub range: [usize; 2],
pub content: [usize; 2],
pub raw: Vec<u8>,
pub value: Asn1Value,
}Expand description
One DER element (tag, length, value).
Fields§
§class: TagClass§number: u32§constructed: bool§range: [usize; 2]Range of the whole element, header included.
content: [usize; 2]Range of the content (header excluded).
raw: Vec<u8>Content bytes of a primitive element (empty when constructed).
value: Asn1ValueImplementations§
Trait Implementations§
impl StructuralPartialEq for Asn1
Auto Trait Implementations§
impl Forget for Asn1
impl Freeze for Asn1
impl Move for Asn1
impl RefUnwindSafe for Asn1
impl Send for Asn1where
RawVecInner: Send,
impl Sync for Asn1where
RawVecInner: Sync,
impl Unpin for Asn1
impl UnsafeUnpin for Asn1where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Asn1>: UnsafeUnpin,
impl UnwindSafe for Asn1where
RawVecInner: 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