pub trait InitIterExt<T> {
// Required methods
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§
Sourcefn fill_with<F>(self, func: F)where
F: FnMut() -> T,
fn fill_with<F>(self, func: F)where
F: FnMut() -> T,
Fill the rest of the iterator with output from a function.
Sourcefn fill_default(self)where
T: Default,
fn fill_default(self)where
T: Default,
Fill the rest of the iterator with default()
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".