pub struct Tag {
pub tag_class: TagClass,
pub tag_number: u64,
}
Expand description
An ASN.1 tag.
An ASN.1 tag is a pair of a tag class and a tag number.
- A tag class is one of:
- UNIVERSAL
- APPLICATION
- context specific
- PRIVATE
- A tag number is a nonnegative integer.
In this library, tag numbers are assumed to fit into
u64
.
Fields§
§tag_class: TagClass
The tag class
tag_number: u64
The tag number
Implementations§
Trait Implementations§
source§impl Ord for Tag
impl Ord for Tag
source§impl PartialOrd for Tag
impl PartialOrd for Tag
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Tag
impl Eq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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