Trait SliceExt

Source
pub trait SliceExt<T: Clone> {
    // Required method
    fn fill(&mut self, item: T);
}
Expand description

Extension trait for std::slice.

Required Methods§

Source

fn fill(&mut self, item: T)

Fill a slice with an item.

Implementations on Foreign Types§

Source§

impl<T: Clone> SliceExt<T> for [T]

Source§

fn fill(&mut self, item: T)

Implementors§