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