Struct ipnet::PrefixLenError
[−]
[src]
pub struct PrefixLenError;
An error that is returned when the prefix length is invalid. Valid prefix lengths are 0 to 32 for IPv4 and 0 to 128 for IPv6.
This error is used as the error type for the new()
and subnets()
methods on Ipv4Net
and Ipv6Net
.
Trait Implementations
impl Debug for PrefixLenError
[src]
impl Clone for PrefixLenError
[src]
fn clone(&self) -> PrefixLenError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for PrefixLenError
[src]
fn eq(&self, __arg_0: &PrefixLenError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for PrefixLenError
[src]
impl Display for PrefixLenError
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more