Struct picky_asn1::tag::Tag
source · 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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)