pub enum CborValueSpec {
Integer(i128),
Bytes(Seq<u8>),
Text(Seq<char>),
Array(Seq<CborValueSpec>),
Map(Seq<(CborValueSpec, CborValueSpec)>),
Tag(u64, Box<CborValueSpec>),
Float(CborFloat),
Bool(bool),
Null,
Undefined,
Simple(u8),
}Expand description
Logical value used by CBOR specifications.
Definite/indefinite framing is erased, matching the RFC generic data model. Floating-point width is retained.
Variants§
Integer(i128)
Bytes(Seq<u8>)
Text(Seq<char>)
Array(Seq<CborValueSpec>)
Map(Seq<(CborValueSpec, CborValueSpec)>)
Tag(u64, Box<CborValueSpec>)
Float(CborFloat)
Bool(bool)
Null
Undefined
Simple(u8)
Auto Trait Implementations§
impl Freeze for CborValueSpec
impl RefUnwindSafe for CborValueSpec
impl Send for CborValueSpec
impl Sync for CborValueSpec
impl Unpin for CborValueSpec
impl UnsafeUnpin for CborValueSpec
impl UnwindSafe for CborValueSpec
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