[−][src]Struct cidr::Ipv4Cidr
Cidr
type representing an IPv4 network
Ordering based on lexicographic bitstring representation.
Trait Implementations
impl BitString for Ipv4Cidr
[src]
fn get(&self, ndx: usize) -> bool
[src]
fn set(&mut self, ndx: usize, bit: bool)
[src]
fn flip(&mut self, ndx: usize)
[src]
fn len(&self) -> usize
[src]
fn clip(&mut self, len: usize)
[src]
fn append(&mut self, bit: bool)
[src]
fn null() -> Self
[src]
fn shared_prefix_len(&self, other: &Self) -> usize
[src]
fn shared_prefix(&self, other: &Self) -> Self where
Self: Clone,
[src]
Self: Clone,
fn subset_cmp(&self, other: &Self) -> Option<Ordering>
[src]
fn lexicographic_cmp(&self, other: &Self) -> Ordering
[src]
impl Cidr for Ipv4Cidr
[src]
type Address = Ipv4Addr
Type for the underlying address (IpAddr
, Ipv4Addr
or Ipv6Addr
). Read more
type Inet = Ipv4Inet
Corresponding Inet
type (representing an address + a network containing it) Read more
fn new(addr: Self::Address, len: u8) -> Result<Self, NetworkParseError>
[src]
fn new_host(addr: Self::Address) -> Self
[src]
fn first_address(&self) -> Self::Address
[src]
fn first(&self) -> Self::Inet
[src]
fn last_address(&self) -> Self::Address
[src]
fn last(&self) -> Self::Inet
[src]
fn network_length(&self) -> u8
[src]
fn family(&self) -> Family
[src]
fn mask(&self) -> Self::Address
[src]
fn contains(&self, addr: &Self::Address) -> bool
[src]
fn iter(&self) -> InetIterator<Self::Inet>ⓘNotable traits for InetIterator<I>
impl<I: Inet + Clone> Iterator for InetIterator<I> type Item = I::Address;
[src]
Notable traits for InetIterator<I>
impl<I: Inet + Clone> Iterator for InetIterator<I> type Item = I::Address;
fn is_host_address(&self) -> bool
[src]
impl Clone for Ipv4Cidr
[src]
impl Debug for Ipv4Cidr
[src]
impl<'de> Deserialize<'de> for Ipv4Cidr
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Display for Ipv4Cidr
[src]
impl Eq for Ipv4Cidr
[src]
impl From<Ipv4Cidr> for AnyIpCidr
[src]
impl From<Ipv4Cidr> for IpCidr
[src]
impl FromStr for Ipv4Cidr
[src]
type Err = NetworkParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Ipv4Cidr, NetworkParseError>
[src]
impl Hash for Ipv4Cidr
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Ipv4Cidr
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Ipv4Cidr> for Ipv4Cidr
[src]
impl PartialOrd<Ipv4Cidr> for Ipv4Cidr
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for Ipv4Cidr
[src]
impl StructuralEq for Ipv4Cidr
[src]
impl StructuralPartialEq for Ipv4Cidr
[src]
Auto Trait Implementations
impl RefUnwindSafe for Ipv4Cidr
impl Send for Ipv4Cidr
impl Sync for Ipv4Cidr
impl Unpin for Ipv4Cidr
impl UnwindSafe for Ipv4Cidr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,