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 Asn1
impl Sync for Asn1
impl Unpin for Asn1
impl UnsafeUnpin for Asn1
impl UnwindSafe for Asn1
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