pub enum CborDetView<'a> {
Int64 {
kind: CborDetIntKind,
value: u64,
},
ByteString {
payload: &'a [u8],
},
TextString {
payload: &'a str,
},
Array {
_0: CborDetArray<'a>,
},
Map {
_0: CborDetMap<'a>,
},
Tagged {
tag: u64,
payload: CborDet<'a>,
},
SimpleValue {
_0: u8,
},
}
Expand description
A read-only view of a Deterministic CBOR object, as obtained by
peeling the first layer of nesting via cbor_det_destruct
below.
Variants§
Int64
ByteString
TextString
Array
Fields
§
_0: CborDetArray<'a>
Map
Fields
§
_0: CborDetMap<'a>
Tagged
SimpleValue
Trait Implementations§
Source§impl<'a> Clone for CborDetView<'a>
impl<'a> Clone for CborDetView<'a>
Source§fn clone(&self) -> CborDetView<'a>
fn clone(&self) -> CborDetView<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> PartialEq for CborDetView<'a>
impl<'a> PartialEq for CborDetView<'a>
impl<'a> Copy for CborDetView<'a>
impl<'a> StructuralPartialEq for CborDetView<'a>
Auto Trait Implementations§
impl<'a> Freeze for CborDetView<'a>
impl<'a> RefUnwindSafe for CborDetView<'a>
impl<'a> Send for CborDetView<'a>
impl<'a> Sync for CborDetView<'a>
impl<'a> Unpin for CborDetView<'a>
impl<'a> UnwindSafe for CborDetView<'a>
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