Struct cidr_utils::cidr::Ipv6Cidr [−][src]
pub struct Ipv6Cidr { /* fields omitted */ }
To represent IPv6 CIDR.
Implementations
impl Ipv6Cidr
[src]
pub fn get_prefix(&self) -> u128
[src]
Get an integer which represents the prefix an IPv6 byte array of this CIDR in big-endian (BE) order.
pub fn get_prefix_as_u8_array(&self) -> [u8; 16]
[src]
pub fn get_prefix_as_u16_array(&self) -> [u16; 8]
[src]
pub fn get_prefix_as_ipv6_addr(&self) -> Ipv6Addr
[src]
pub fn get_bits(&self) -> u8
[src]
pub fn get_mask(&self) -> u128
[src]
Get an integer which represents the prefix an IPv6 byte array of this CIDR in big-endian (BE) order.
pub fn get_mask_as_u8_array(&self) -> [u8; 16]
[src]
pub fn get_mask_as_u16_array(&self) -> [u16; 8]
[src]
pub fn get_mask_as_ipv6_addr(&self) -> Ipv6Addr
[src]
impl Ipv6Cidr
[src]
pub fn from_prefix_and_bits<P: Ipv6Able>(
prefix: P,
bits: u8
) -> Result<Ipv6Cidr, Ipv6CidrError>
[src]
prefix: P,
bits: u8
) -> Result<Ipv6Cidr, Ipv6CidrError>
pub fn from_prefix_and_mask<P: Ipv6Able, M: Ipv6Able>(
prefix: P,
mask: M
) -> Result<Ipv6Cidr, Ipv6CidrError>
[src]
prefix: P,
mask: M
) -> Result<Ipv6Cidr, Ipv6CidrError>
pub fn from_str<S: AsRef<str>>(s: S) -> Result<Ipv6Cidr, Ipv6CidrError>
[src]
pub fn is_ipv6_cidr<S: AsRef<str>>(s: S) -> bool
[src]
impl Ipv6Cidr
[src]
pub fn first(&self) -> u128
[src]
Get an integer which represents the first IPv6 byte array of this CIDR in big-endian (BE) order.
pub fn first_as_u8_array(&self) -> [u8; 16]
[src]
pub fn first_as_u16_array(&self) -> [u16; 8]
[src]
pub fn first_as_ipv6_addr(&self) -> Ipv6Addr
[src]
pub fn last(&self) -> u128
[src]
Get an integer which represents the last IPv6 byte array of this CIDR in big-endian (BE) order.
pub fn last_as_u8_array(&self) -> [u8; 16]
[src]
pub fn last_as_u16_array(&self) -> [u16; 8]
[src]
pub fn last_as_ipv6_addr(&self) -> Ipv6Addr
[src]
pub fn size(&self) -> BigUint
[src]
impl Ipv6Cidr
[src]
impl Ipv6Cidr
[src]
pub fn iter_as_u8_array(&self) -> Ipv6CidrU8ArrayIteratorⓘNotable traits for Ipv6CidrU8ArrayIterator
impl Iterator for Ipv6CidrU8ArrayIterator type Item = [u8; 16];
[src]
Notable traits for Ipv6CidrU8ArrayIterator
impl Iterator for Ipv6CidrU8ArrayIterator type Item = [u8; 16];
impl Ipv6Cidr
[src]
pub fn iter_as_u16_array(&self) -> Ipv6CidrU16ArrayIteratorⓘNotable traits for Ipv6CidrU16ArrayIterator
impl Iterator for Ipv6CidrU16ArrayIterator type Item = [u16; 8];
[src]
Notable traits for Ipv6CidrU16ArrayIterator
impl Iterator for Ipv6CidrU16ArrayIterator type Item = [u16; 8];
impl Ipv6Cidr
[src]
pub fn iter(&self) -> Ipv6CidrIteratorⓘNotable traits for Ipv6CidrIterator
impl Iterator for Ipv6CidrIterator type Item = u128;
[src]
Notable traits for Ipv6CidrIterator
impl Iterator for Ipv6CidrIterator type Item = u128;
impl Ipv6Cidr
[src]
pub fn iter_as_ipv6_addr(&self) -> Ipv6CidrIpv6AddrIteratorⓘNotable traits for Ipv6CidrIpv6AddrIterator
impl Iterator for Ipv6CidrIpv6AddrIterator type Item = Ipv6Addr;
[src]
Notable traits for Ipv6CidrIpv6AddrIterator
impl Iterator for Ipv6CidrIpv6AddrIterator type Item = Ipv6Addr;
Trait Implementations
impl Clone for Ipv6Cidr
[src]
impl Copy for Ipv6Cidr
[src]
impl Debug for Ipv6Cidr
[src]
impl Display for Ipv6Cidr
[src]
impl Eq for Ipv6Cidr
[src]
impl FromStr for Ipv6Cidr
[src]
type Err = Ipv6CidrError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Ipv6Cidr
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Ipv6Cidr
[src]
fn cmp(&self, other: &Ipv6Cidr) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
pub fn max(self, other: Self) -> Self#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
pub fn min(self, other: Self) -> Self#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
#[must_use]
pub fn clamp(self, min: Self, max: Self) -> Selfimpl PartialEq<IpCidr> for Ipv6Cidr
[src]
impl PartialEq<Ipv6Cidr> for Ipv6Cidr
[src]
impl PartialEq<Ipv6Cidr> for IpCidr
[src]
fn eq(&self, other: &Ipv6Cidr) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialOrd<IpCidr> for Ipv6Cidr
[src]
fn partial_cmp(&self, other: &IpCidr) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl PartialOrd<Ipv6Cidr> for Ipv6Cidr
[src]
fn partial_cmp(&self, other: &Ipv6Cidr) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl PartialOrd<Ipv6Cidr> for IpCidr
[src]
fn partial_cmp(&self, other: &Ipv6Cidr) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl StructuralEq for Ipv6Cidr
[src]
impl StructuralPartialEq for Ipv6Cidr
[src]
impl TryFrom<&'_ str> for Ipv6Cidr
[src]
Auto Trait Implementations
impl RefUnwindSafe for Ipv6Cidr
impl Send for Ipv6Cidr
impl Sync for Ipv6Cidr
impl Unpin for Ipv6Cidr
impl UnwindSafe for Ipv6Cidr
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,