pub struct SimpleTag(/* private fields */);Expand description
These are tags like in SIMPLE-TLV.
The tag field consists of a single byte encoding a tag number from 1 to 254. The values ‘00’ and ‘FF’ are invalid.
The use case is that PIV (FIPS 201) data objects generally use BER-TLV, but, for historical reasons, label entries with “simple” tags (in particular, tag numbers larger than 30 are still encoded as single bytes.
Trait Implementations§
Source§impl Encodable for SimpleTag
impl Encodable for SimpleTag
Source§impl TagLike for SimpleTag
impl TagLike for SimpleTag
Source§fn embedding(self) -> Tag
fn embedding(self) -> Tag
To stick with one Error type, make sure the tag type can somehow
or other be coerced into a BerTag.
Source§fn with_value<V>(self, value: V) -> TaggedValue<V, Self>
fn with_value<V>(self, value: V) -> TaggedValue<V, Self>
Ergonomic way to get a TaggedValue for a given tag and value
impl Copy for SimpleTag
impl Eq for SimpleTag
impl StructuralPartialEq for SimpleTag
Auto Trait Implementations§
impl Freeze for SimpleTag
impl RefUnwindSafe for SimpleTag
impl Send for SimpleTag
impl Sync for SimpleTag
impl Unpin for SimpleTag
impl UnwindSafe for SimpleTag
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