pub struct PktCmp<T>(pub T);
Expand description
A newtype around any T:NetPkt that implements Eq (and Hash) based on pkt hash and Ord on the standard tree index order.
Tuple Fields§
§0: T
Trait Implementations§
§impl<'de, T> Deserialize<'de> for PktCmp<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for PktCmp<T>where T: Deserialize<'de>,
§fn deserialize<__D>(
__deserializer: __D
) -> Result<PktCmp<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<PktCmp<T>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<T> Ord for PktCmp<T>where
T: NetPkt,
impl<T> Ord for PktCmp<T>where T: NetPkt,
§impl<T> PartialOrd for PktCmp<T>where
T: NetPkt,
impl<T> PartialOrd for PktCmp<T>where T: NetPkt,
§fn partial_cmp(&self, other: &PktCmp<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &PktCmp<T>) -> Option<Ordering>
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 more§impl<T> Serialize for PktCmp<T>where
T: Serialize,
impl<T> Serialize for PktCmp<T>where T: Serialize,
§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<T> Eq for PktCmp<T>where T: NetPkt,
Auto Trait Implementations§
impl<T> RefUnwindSafe for PktCmp<T>where T: RefUnwindSafe,
impl<T> Send for PktCmp<T>where T: Send,
impl<T> Sync for PktCmp<T>where T: Sync,
impl<T> Unpin for PktCmp<T>where T: Unpin,
impl<T> UnwindSafe for PktCmp<T>where T: 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