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 be in
u64
.
Fields
tag_class: TagClass
The tag class
tag_number: u64
The tag number
Implementations
Trait Implementations
sourceimpl Hash for Tag
impl Hash for Tag
sourcefn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [
Hasher
]. Read more1.3.0fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Feeds a slice of this type into the given [
Hasher
]. Read moresourceimpl Ord for Tag
impl Ord for Tag
sourceimpl PartialOrd<Tag> for Tag
impl PartialOrd<Tag> for Tag
impl Copy for Tag
impl Eq for Tag
impl StructuralEq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more