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: PartialEq> PartialEq<Captured<V>> for Captured<V>
impl<V: PartialEq> PartialEq<Captured<V>> for Captured<V>
source§impl<V: PartialOrd> PartialOrd<Captured<V>> for Captured<V>
impl<V: PartialOrd> PartialOrd<Captured<V>> for Captured<V>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<V: Copy> Copy for Captured<V>
impl<V: Eq> Eq for Captured<V>
impl<V> StructuralEq for Captured<V>
impl<V> StructuralPartialEq for Captured<V>
Auto Trait Implementations§
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