Type Alias der_parser::der::DerClass

source ·
pub type DerClass = Class;
👎Deprecated since 7.0.0: Use Class instead
Expand description

DER Object class of tag (same as BerClass)

Aliased Type§

enum DerClass {
    Universal = 0,
    Application = 1,
    ContextSpecific = 2,
    Private = 3,
}

Variants§

§

Universal = 0

Universal class of tags (0b00)

§

Application = 1

Application class of tags (0b01)

§

ContextSpecific = 2

Context-Specific class of tags (0b10)

§

Private = 3

Private class of tags (0b11)

Implementations

source§

impl Class

source

pub const UNIVERSAL: u8 = 0u8

Universal class of tags (0b00)

source

pub const APPLICATION: u8 = 1u8

Application class of tags (0b01)

source

pub const CONTEXT_SPECIFIC: u8 = 2u8

Context-Specific class of tags (0b10)

source

pub const PRIVATE: u8 = 3u8

Private class of tags (0b11)

source

pub const fn assert_eq(&self, class: Class) -> Result<(), Error>

Trait Implementations

source§

impl Clone for Class

source§

fn clone(&self) -> Class

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Class

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for Class

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq for Class

source§

fn eq(&self, other: &Class) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<u8> for Class

§

type Error = BerClassFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(value: u8) -> Result<Class, <Class as TryFrom<u8>>::Error>

Performs the conversion.
source§

impl Copy for Class

source§

impl Eq for Class

source§

impl StructuralPartialEq for Class