Enum ipnetwork::NetworkSize
source · [−]Expand description
Represents a generic network size. For IPv4, the max size is a u32 and for IPv6, it is a u128
Variants
V4(u32)
V6(u128)
Trait Implementations
sourceimpl Clone for NetworkSize
impl Clone for NetworkSize
sourcefn clone(&self) -> NetworkSize
fn clone(&self) -> NetworkSize
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NetworkSize
impl Debug for NetworkSize
sourceimpl Hash for NetworkSize
impl Hash for NetworkSize
sourceimpl Ord for NetworkSize
impl Ord for NetworkSize
sourceimpl PartialEq<NetworkSize> for NetworkSize
impl PartialEq<NetworkSize> for NetworkSize
sourcefn eq(&self, other: &NetworkSize) -> bool
fn eq(&self, other: &NetworkSize) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NetworkSize) -> bool
fn ne(&self, other: &NetworkSize) -> bool
This method tests for !=
.
sourceimpl PartialOrd<NetworkSize> for NetworkSize
impl PartialOrd<NetworkSize> for NetworkSize
sourcefn partial_cmp(&self, other: &NetworkSize) -> Option<Ordering>
fn partial_cmp(&self, other: &NetworkSize) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 Copy for NetworkSize
impl Eq for NetworkSize
impl StructuralEq for NetworkSize
impl StructuralPartialEq for NetworkSize
Auto Trait Implementations
impl RefUnwindSafe for NetworkSize
impl Send for NetworkSize
impl Sync for NetworkSize
impl Unpin for NetworkSize
impl UnwindSafe for NetworkSize
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more