#[repr(transparent)]pub struct Encoded<T: ?Sized>(pub T);Expand description
Encodes as a tagged byte string, where the content is the CBOR encoding of T.
Uses IanaTag::Cbor as the tag.
Tuple Fields§
§0: TImplementations§
Trait Implementations§
Source§impl<T: Ord + ?Sized> Ord for Encoded<T>
impl<T: Ord + ?Sized> Ord for Encoded<T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd + ?Sized> PartialOrd for Encoded<T>
impl<T: PartialOrd + ?Sized> PartialOrd for Encoded<T>
impl<T: Copy + ?Sized> Copy for Encoded<T>
impl<T: Eq + ?Sized> Eq for Encoded<T>
impl<T: ?Sized> StructuralPartialEq for Encoded<T>
Auto Trait Implementations§
impl<T> Freeze for Encoded<T>
impl<T> RefUnwindSafe for Encoded<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for Encoded<T>
impl<T> Sync for Encoded<T>
impl<T> Unpin for Encoded<T>
impl<T> UnwindSafe for Encoded<T>where
T: UnwindSafe + ?Sized,
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