Struct der_parser::ber::Tag
source · [−]pub struct Tag(pub u32);
Expand description
BER/DER Tag as defined in X.680 section 8.4
X.690 doesn’t specify the maximum tag size so we’re assuming that people aren’t going to need anything more than a u32.
Tuple Fields
0: u32
Implementations
sourceimpl Tag
impl Tag
pub const EndOfContent: Tag
pub const Boolean: Tag
pub const Integer: Tag
pub const BitString: Tag
pub const OctetString: Tag
pub const Null: Tag
pub const Oid: Tag
pub const ObjectDescriptor: Tag
pub const External: Tag
pub const RealType: Tag
pub const Enumerated: Tag
pub const EmbeddedPdv: Tag
pub const Utf8String: Tag
pub const RelativeOid: Tag
pub const Sequence: Tag
pub const Set: Tag
pub const NumericString: Tag
pub const PrintableString: Tag
pub const T61String: Tag
pub const TeletexString: Tag
pub const VideotexString: Tag
pub const Ia5String: Tag
pub const UtcTime: Tag
pub const GeneralizedTime: Tag
pub const GraphicString: Tag
pub const VisibleString: Tag
pub const GeneralString: Tag
pub const UniversalString: Tag
pub const BmpString: Tag
Trait Implementations
impl 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
sourceimpl<'a, T> AsTaggedExplicit<'a> for T where
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for T where
T: 'a,
sourceimpl<'a, T> AsTaggedImplicit<'a> for T where
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for T where
T: 'a,
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more