pub struct Captured<V>(pub Option<u64>, pub V);
Expand description
An optional CBOR tag and its data item
No semantic evaluation of the tag is made.
Tuple Fields§
§0: Option<u64>
§1: V
Trait Implementations§
Source§impl<'de, V: Deserialize<'de>> Deserialize<'de> for Captured<V>
impl<'de, V: Deserialize<'de>> Deserialize<'de> for Captured<V>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<V: Ord> Ord for Captured<V>
impl<V: Ord> Ord for Captured<V>
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<V: PartialOrd> PartialOrd for Captured<V>
impl<V: PartialOrd> PartialOrd for Captured<V>
impl<V: Copy> Copy for Captured<V>
impl<V: Eq> Eq for Captured<V>
impl<V> StructuralPartialEq for Captured<V>
Auto Trait Implementations§
impl<V> Freeze for Captured<V>where
V: Freeze,
impl<V> RefUnwindSafe for Captured<V>where
V: RefUnwindSafe,
impl<V> Send for Captured<V>where
V: Send,
impl<V> Sync for Captured<V>where
V: Sync,
impl<V> Unpin for Captured<V>where
V: Unpin,
impl<V> UnwindSafe for Captured<V>where
V: UnwindSafe,
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