pub struct Tag(/* private fields */);Expand description
A tag value for use with Tagged.
Tags are just integers; this type exists to avoid any type confusion when passing them as function arguments.
See RFC 7049 2.4 for details.
Implementations§
Source§impl Tag
impl Tag
pub const STD_DATE_TIME: Tag
pub const EPOCH_DATE_TIME: Tag
pub const POS_BIGNUM: Tag
pub const NEG_BIGNUM: Tag
pub const DECIMAL_FRACTION: Tag
pub const BIGFLOAT: Tag
pub const EXPECT_BASE64URL: Tag
pub const EXPECT_BASE64: Tag
pub const EXPECT_BASE16: Tag
pub const CBOR_DATA: Tag
pub const URI: Tag
pub const BASE64URL: Tag
pub const BASE64: Tag
pub const REGEXP: Tag
pub const MIME: Tag
pub const SELF_DESC_CBOR: Tag
Trait Implementations§
impl Copy for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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