Struct ns_protocol::ns::tag::Captured
source · 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> for Captured<V>where
V: Deserialize<'de>,
impl<'de, V> Deserialize<'de> for Captured<V>where
V: Deserialize<'de>,
source§fn deserialize<D>(
deserializer: D
) -> Result<Captured<V>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Captured<V>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<V> Ord for Captured<V>where
V: Ord,
impl<V> Ord for Captured<V>where
V: Ord,
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 for Captured<V>where
V: PartialEq,
impl<V> PartialEq for Captured<V>where
V: PartialEq,
source§impl<V> PartialOrd for Captured<V>where
V: PartialOrd,
impl<V> PartialOrd for Captured<V>where
V: PartialOrd,
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 moresource§impl<V> Serialize for Captured<V>where
V: Serialize,
impl<V> Serialize for Captured<V>where
V: Serialize,
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<V> Copy for Captured<V>where
V: Copy,
impl<V> Eq for Captured<V>where
V: Eq,
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