[][src]Trait malloc_array::init::InitIterExt

pub trait InitIterExt<T> {
    fn fill(self, value: T)
    where
        T: Clone
;
fn fill_with<F>(self, func: F)
    where
        F: FnMut() -> T
;
fn fill_default(self)
    where
        T: Default
; }

Required methods

fn fill(self, value: T) where
    T: Clone

Fill the rest of the iterator with a clone()d value.

fn fill_with<F>(self, func: F) where
    F: FnMut() -> T, 

Fill the rest of the iterator with output from a function.

fn fill_default(self) where
    T: Default

Fill the rest of the iterator with default()

Loading content...

Implementors

impl<'a, T, I> InitIterExt<T> for I where
    I: Iterator<Item = Init<'a, T>>,
    T: 'a, 
[src]

Loading content...