pub struct Tag { /* private fields */ }Expand description
A CBOR tag.
Implementations§
Source§impl Tag
impl Tag
Sourcepub fn new(value: TagValue, name: impl Into<String>) -> Tag
pub fn new(value: TagValue, name: impl Into<String>) -> Tag
Creates a new CBOR tag with the given value and associated name.
Sourcepub const fn with_value(value: TagValue) -> Tag
pub const fn with_value(value: TagValue) -> Tag
Creates a new CBOR tag with the given value and no name.
Sourcepub const fn with_static_name(value: TagValue, name: &'static str) -> Tag
pub const fn with_static_name(value: TagValue, name: &'static str) -> Tag
Creates a new CBOR tag at compile time with the given value and associated name.
Trait Implementations§
impl Eq 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