Struct picky_asn1::tag::Tag
source · pub struct Tag(_);
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<Tag> for Tag
impl PartialOrd<Tag> 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 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§
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