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 = Tag(0)
pub const Boolean: Tag = Tag(1)
pub const Integer: Tag = Tag(2)
pub const BitString: Tag = Tag(3)
pub const OctetString: Tag = Tag(4)
pub const Null: Tag = Tag(5)
pub const Oid: Tag = Tag(6)
pub const ObjectDescriptor: Tag = Tag(7)
pub const External: Tag = Tag(8)
pub const RealType: Tag = Tag(9)
pub const Enumerated: Tag = Tag(10)
pub const EmbeddedPdv: Tag = Tag(11)
pub const Utf8String: Tag = Tag(12)
pub const RelativeOid: Tag = Tag(13)
pub const Sequence: Tag = Tag(16)
pub const Set: Tag = Tag(17)
pub const NumericString: Tag = Tag(18)
pub const PrintableString: Tag = Tag(19)
pub const T61String: Tag = Tag(20)
pub const TeletexString: Tag = Tag(20)
pub const VideotexString: Tag = Tag(21)
pub const Ia5String: Tag = Tag(22)
pub const UtcTime: Tag = Tag(23)
pub const GeneralizedTime: Tag = Tag(24)
pub const GraphicString: Tag = Tag(25)
pub const VisibleString: Tag = Tag(26)
pub const GeneralString: Tag = Tag(27)
pub const UniversalString: Tag = Tag(28)
pub const BmpString: Tag = Tag(30)
Trait Implementations
sourceimpl From<Tag> for OptTaggedParser
impl From<Tag> for OptTaggedParser
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<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more