Struct ip_network::iterator::Ipv6NetworkIterator[][src]

pub struct Ipv6NetworkIterator { /* fields omitted */ }

Iterates over new created IPv6 network from given network.

Implementations

impl Ipv6NetworkIterator[src]

pub fn new(network: Ipv6Network, new_netmask: u8) -> Self[src]

Constructs new Ipv6NetworkIterator, that iterates over networks based on network and new_netmask. If network has already netmask 128 or when is the same as new_netmask, empty iterator is returned.

Panics

When new_netmask is smaller than network netmask or when net_netmask is bigger than 128.

pub fn real_len(&self) -> u128[src]

Trait Implementations

impl ExactSizeIterator for Ipv6NetworkIterator[src]

impl Iterator for Ipv6NetworkIterator[src]

type Item = Ipv6Network

The type of the elements being iterated over.

Auto Trait Implementations

impl RefUnwindSafe for Ipv6NetworkIterator

impl Send for Ipv6NetworkIterator

impl Sync for Ipv6NetworkIterator

impl Unpin for Ipv6NetworkIterator

impl UnwindSafe for Ipv6NetworkIterator

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.