pub struct Tag(/* private fields */);
Implementations§
Source§impl Tag
impl Tag
pub const BOOLEAN: Self = _
pub const INTEGER: Self = _
pub const BIT_STRING: Self = _
pub const OCTET_STRING: Self = _
pub const NULL: Self = _
pub const OID: Self = _
pub const REAL: Self = _
pub const UTF8_STRING: Self = _
pub const RELATIVE_OID: Self = _
pub const NUMERIC_STRING: Self = _
pub const PRINTABLE_STRING: Self = _
pub const TELETEX_STRING: Self = _
pub const VIDEOTEX_STRING: Self = _
pub const IA5_STRING: Self = _
pub const BMP_STRING: Self = _
pub const UTC_TIME: Self = _
pub const GENERALIZED_TIME: Self = _
pub const SEQUENCE: Self = _
pub const SET: Self = _
pub const GENERAL_STRING: Self = _
pub const fn application_primitive(number: u8) -> Self
pub const fn application_constructed(number: u8) -> Self
pub const fn context_specific_primitive(number: u8) -> Self
pub const fn context_specific_constructed(number: u8) -> Self
Sourcepub const fn number(self) -> u8
pub const fn number(self) -> u8
Tag number of the ASN.1 value (filtering class bits and constructed bit with a mask)
pub fn class(self) -> TagClass
pub fn class_and_number(self) -> (TagClass, u8)
pub fn components(self) -> (TagClass, Encoding, u8)
pub const fn is_application(self) -> bool
pub const fn is_context_specific(self) -> bool
pub const fn is_universal(self) -> bool
pub const fn is_private(self) -> bool
pub const fn is_constructed(self) -> bool
pub const fn is_primitive(self) -> bool
pub fn encoding(self) -> Encoding
Trait Implementations§
Source§impl Ord for Tag
impl Ord for Tag
Source§impl PartialOrd for Tag
impl PartialOrd for Tag
impl 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