pub struct Tag { /* private fields */ }Expand description
A CBOR tag.
Implementations§
source§impl Tag
impl Tag
sourcepub fn new_with_name<N>(value: u64, name: N) -> Tagwhere
N: Into<String>,
pub fn new_with_name<N>(value: u64, name: N) -> Tagwhere N: Into<String>,
Creates a new CBOR tag with the given value and associated name.
sourcepub const fn new_with_static_name(value: u64, name: &'static str) -> Tag
pub const fn new_with_static_name(value: u64, 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 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