Struct der_parser::ber::BerTag

source ·
pub struct BerTag(pub u32);
Expand description

BER/DER Tag as defined in X.680 section 8.4

X.690 doesn’t specify the maxmimum tag size so we’re assuming that people aren’t going to need anything more than a u32.

Tuple Fields§

§0: u32

Implementations§

source§

impl BerTag

source

pub const EndOfContent: BerTag = _

source

pub const Boolean: BerTag = _

source

pub const Integer: BerTag = _

source

pub const BitString: BerTag = _

source

pub const OctetString: BerTag = _

source

pub const Null: BerTag = _

source

pub const Oid: BerTag = _

source

pub const ObjDescriptor: BerTag = _

source

pub const External: BerTag = _

source

pub const RealType: BerTag = _

source

pub const Enumerated: BerTag = _

source

pub const EmbeddedPdv: BerTag = _

source

pub const Utf8String: BerTag = _

source

pub const RelativeOid: BerTag = _

source

pub const Sequence: BerTag = _

source

pub const Set: BerTag = _

source

pub const NumericString: BerTag = _

source

pub const PrintableString: BerTag = _

source

pub const T61String: BerTag = _

source

pub const Ia5String: BerTag = _

source

pub const UtcTime: BerTag = _

source

pub const GeneralizedTime: BerTag = _

source

pub const GeneralString: BerTag = _

source

pub const BmpString: BerTag = _

source

pub const Invalid: BerTag = _

Trait Implementations§

source§

impl Clone for BerTag

source§

fn clone(&self) -> BerTag

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 BerTag

source§

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

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

impl Display for BerTag

source§

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

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

impl PartialEq<BerTag> for BerTag

source§

fn eq(&self, other: &BerTag) -> 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 Copy for BerTag

source§

impl Eq for BerTag

source§

impl StructuralEq for BerTag

source§

impl StructuralPartialEq for BerTag

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.