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§
impl<I: Eq + Ip, T: Eq> Eq for IpMarked<I, T>
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 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<I: PartialOrd + Ip, T: PartialOrd> PartialOrd for IpMarked<I, T>
impl<I: PartialOrd + Ip, T: PartialOrd> PartialOrd for IpMarked<I, T>
impl<I: PartialEq + Ip, T: PartialEq> StructuralPartialEq for IpMarked<I, T>
Auto Trait Implementations§
impl<I, T> Freeze for IpMarked<I, T>
impl<I, T> RefUnwindSafe for IpMarked<I, T>
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> UnsafeUnpin for IpMarked<I, T>
impl<I, T> UnwindSafe for IpMarked<I, T>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<R> CryptoRng for R
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<R> Rng for R
impl<R> Rng for R
impl<R> RngCore for Rwhere
R: Rng,
impl<R> TryCryptoRng for R
§impl<R> TryRng for R
impl<R> TryRng for R
§type Error = <<R as Deref>::Target as TryRng>::Error
type Error = <<R as Deref>::Target as TryRng>::Error
The type returned in the event of a RNG error. Read more
§fn try_next_u32(&mut self) -> Result<u32, <R as TryRng>::Error>
fn try_next_u32(&mut self) -> Result<u32, <R as TryRng>::Error>
Return the next random
u32.§fn try_next_u64(&mut self) -> Result<u64, <R as TryRng>::Error>
fn try_next_u64(&mut self) -> Result<u64, <R as TryRng>::Error>
Return the next random
u64.§fn try_fill_bytes(&mut self, dst: &mut [u8]) -> Result<(), <R as TryRng>::Error>
fn try_fill_bytes(&mut self, dst: &mut [u8]) -> Result<(), <R as TryRng>::Error>
Fill
dst entirely with random data.