Struct ip_network::iterator::Ipv4NetworkIterator[][src]

pub struct Ipv4NetworkIterator { /* fields omitted */ }

Iterates over new created IPv4 network from given network.

Implementations

impl Ipv4NetworkIterator[src]

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

Constructs new Ipv4NetworkIterator, that iterates over networks based on network and new_netmask. If network has already netmask 32 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 32.

Trait Implementations

impl ExactSizeIterator for Ipv4NetworkIterator[src]

impl Iterator for Ipv4NetworkIterator[src]

type Item = Ipv4Network

The type of the elements being iterated over.

Auto Trait Implementations

impl RefUnwindSafe for Ipv4NetworkIterator

impl Send for Ipv4NetworkIterator

impl Sync for Ipv4NetworkIterator

impl Unpin for Ipv4NetworkIterator

impl UnwindSafe for Ipv4NetworkIterator

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.