Skip to main content

VecTExt

Trait VecTExt 

Source
pub trait VecTExt<T> {
    // Required method
    fn get_or_extend_with<F>(&mut self, i: usize, f: F) -> &mut T
       where F: FnMut() -> T;
}

Required Methods§

Source

fn get_or_extend_with<F>(&mut self, i: usize, f: F) -> &mut T
where F: FnMut() -> T,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> VecTExt<T> for Vec<T>

Source§

fn get_or_extend_with<F>(&mut self, i: usize, f: F) -> &mut T
where F: FnMut() -> T,

Implementors§