Trait layout_2013::table::VecExt

source ·
pub trait VecExt<T> {
    // Required methods
    fn push_or_set(&mut self, index: usize, value: T) -> &mut T;
    fn get_mut_or_push(&mut self, index: usize, zero: T) -> &mut T;
}

Required Methods§

source

fn push_or_set(&mut self, index: usize, value: T) -> &mut T

source

fn get_mut_or_push(&mut self, index: usize, zero: T) -> &mut T

Implementations on Foreign Types§

source§

impl<T> VecExt<T> for Vec<T>

source§

fn push_or_set(&mut self, index: usize, value: T) -> &mut T

source§

fn get_mut_or_push(&mut self, index: usize, zero: T) -> &mut T

Implementors§