pub struct IpMarked<I: Ip, T> { /* private fields */ }
Expand description
A wrapper structure to add an IP version marker to an IP-invariant type.
Implementations§
Trait Implementations§
source§impl<I: Ord + Ip, T: Ord> Ord for IpMarked<I, T>
impl<I: Ord + Ip, T: Ord> Ord for IpMarked<I, 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<I: PartialEq + Ip, T: PartialEq> PartialEq for IpMarked<I, T>
impl<I: PartialEq + Ip, T: PartialEq> PartialEq for IpMarked<I, T>
source§impl<I: PartialOrd + Ip, T: PartialOrd> PartialOrd for IpMarked<I, T>
impl<I: PartialOrd + Ip, T: PartialOrd> PartialOrd for IpMarked<I, T>
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<I: Eq + Ip, T: Eq> Eq for IpMarked<I, T>
impl<I: Ip, T> StructuralPartialEq for IpMarked<I, T>
Auto Trait Implementations§
impl<I, T> Freeze for IpMarked<I, T>
impl<I, T> RefUnwindSafe for IpMarked<I, T>where
I: Sealed + Sync + Send + PartialOrd + PartialEq + Ord + Hash + Eq + Default + Debug + Copy + Clone + 'static + RefUnwindSafe,
T: RefUnwindSafe,
impl<I, T> Send for IpMarked<I, T>
impl<I, T> Sync for IpMarked<I, T>
impl<I, T> Unpin for IpMarked<I, T>
impl<I, T> UnwindSafe for IpMarked<I, T>where
I: Sealed + Sync + Send + PartialOrd + PartialEq + Ord + Hash + Eq + Default + Debug + Copy + Clone + 'static + UnwindSafe,
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