[−][src]Struct cidr::Ipv6Inet
Inet
type representing an IPv6 host within a network
Derived ordering, i.e. first sort by address, then by network length.
Trait Implementations
impl BitString for Ipv6Inet
[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 Clone for Ipv6Inet
[src]
impl Debug for Ipv6Inet
[src]
impl<'de> Deserialize<'de> for Ipv6Inet
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Display for Ipv6Inet
[src]
impl Eq for Ipv6Inet
[src]
impl From<Ipv6Inet> for IpInet
[src]
impl FromStr for Ipv6Inet
[src]
type Err = NetworkParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Ipv6Inet, NetworkParseError>
[src]
impl Hash for Ipv6Inet
[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 Inet for Ipv6Inet
[src]
type Address = Ipv6Addr
Type for the underlying address (IpAddr
, Ipv4Addr
or Ipv6Addr
). Read more
type Cidr = Ipv6Cidr
Corresponding Cidr
type (representing only the network)
fn new(addr: Self::Address, len: u8) -> Result<Self, NetworkLengthTooLongError>
[src]
fn new_host(addr: Self::Address) -> Self
[src]
fn next(&mut self) -> bool
[src]
fn network(&self) -> Self::Cidr
[src]
fn address(&self) -> Self::Address
[src]
fn first_address(&self) -> Self::Address
[src]
fn first(&self) -> Self
[src]
fn last_address(&self) -> Self::Address
[src]
fn last(&self) -> Self
[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 is_host_address(&self) -> bool
[src]
impl Ord for Ipv6Inet
[src]
fn cmp(&self, other: &Ipv6Inet) -> 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<Ipv6Inet> for Ipv6Inet
[src]
impl PartialOrd<Ipv6Inet> for Ipv6Inet
[src]
fn partial_cmp(&self, other: &Ipv6Inet) -> Option<Ordering>
[src]
fn lt(&self, other: &Ipv6Inet) -> bool
[src]
fn le(&self, other: &Ipv6Inet) -> bool
[src]
fn gt(&self, other: &Ipv6Inet) -> bool
[src]
fn ge(&self, other: &Ipv6Inet) -> bool
[src]
impl Serialize for Ipv6Inet
[src]
impl StructuralEq for Ipv6Inet
[src]
impl StructuralPartialEq for Ipv6Inet
[src]
Auto Trait Implementations
impl RefUnwindSafe for Ipv6Inet
impl Send for Ipv6Inet
impl Sync for Ipv6Inet
impl Unpin for Ipv6Inet
impl UnwindSafe for Ipv6Inet
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>,