pub enum CborBytes<'i> {
Definite(&'i [u8]),
Indefinite(Vec<u8>),
}Expand description
Runtime representation of a CBOR byte string.
Variants§
Definite(&'i [u8])
A definite-length string borrowed directly from the input.
Indefinite(Vec<u8>)
Flattened contents of an indefinite-length, fragmented string.
Implementations§
Trait Implementations§
Source§impl<'i> PartialEq for CborBytes<'i>
impl<'i> PartialEq for CborBytes<'i>
impl<'i> Eq for CborBytes<'i>
impl<'i> StructuralPartialEq for CborBytes<'i>
Auto Trait Implementations§
impl<'i> Freeze for CborBytes<'i>
impl<'i> RefUnwindSafe for CborBytes<'i>
impl<'i> Send for CborBytes<'i>
impl<'i> Sync for CborBytes<'i>
impl<'i> Unpin for CborBytes<'i>
impl<'i> UnsafeUnpin for CborBytes<'i>
impl<'i> UnwindSafe for CborBytes<'i>
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