Struct ipnet::PrefixLenError [−][src]
pub struct PrefixLenError;
An error which can be returned when the prefix length is invalid.
Valid prefix lengths are 0 to 32 for IPv4 and 0 to 128 for IPv6.
Trait Implementations
impl Debug for PrefixLenError
[src]
impl Debug for PrefixLenError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for PrefixLenError
[src]
impl Clone for PrefixLenError
fn clone(&self) -> PrefixLenError
[src]
fn clone(&self) -> PrefixLenError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for PrefixLenError
[src]
impl PartialEq for PrefixLenError
fn eq(&self, other: &PrefixLenError) -> bool
[src]
fn eq(&self, other: &PrefixLenError) -> bool
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]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for PrefixLenError
[src]
impl Eq for PrefixLenError
impl Display for PrefixLenError
[src]
impl Display for PrefixLenError
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for PrefixLenError
[src]
impl Error for PrefixLenError
Auto Trait Implementations
impl Send for PrefixLenError
impl Send for PrefixLenError
impl Sync for PrefixLenError
impl Sync for PrefixLenError