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)
Implementations§
Source§impl CborValueSpec
impl CborValueSpec
pub fn arrow_1(self) -> Box<CborValueSpec>
pub fn arrow_0(self) -> u8
pub fn arrow_Integer_0(self) -> i128
pub fn arrow_Bytes_0(self) -> Seq<u8>
pub fn arrow_Text_0(self) -> Seq<char>
pub fn arrow_Array_0(self) -> Seq<CborValueSpec>
pub fn arrow_Map_0(self) -> Seq<(CborValueSpec, CborValueSpec)>
pub fn arrow_Tag_0(self) -> u64
pub fn arrow_Tag_1(self) -> Box<CborValueSpec>
pub fn arrow_Float_0(self) -> CborFloat
pub fn arrow_Bool_0(self) -> bool
pub fn arrow_Simple_0(self) -> 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