VecTrait

Trait VecTrait 

Source
pub trait VecTrait {
    type T;

    // Required methods
    fn borrow_mut(&mut self) -> &mut Vec<Self::T>;
    fn borrow(&self) -> &Vec<Self::T>;
}
Expand description

Abstract over a Vec and a &mut Vec

Required Associated Types§

Source

type T

Required Methods§

Source

fn borrow_mut(&mut self) -> &mut Vec<Self::T>

Source

fn borrow(&self) -> &Vec<Self::T>

Implementations on Foreign Types§

Source§

impl<T> VecTrait for &mut Vec<T>

Source§

type T = T

Source§

fn borrow_mut(&mut self) -> &mut Vec<Self::T>

Source§

fn borrow(&self) -> &Vec<Self::T>

Source§

impl<T> VecTrait for Vec<T>

Source§

type T = T

Source§

fn borrow_mut(&mut self) -> &mut Vec<Self::T>

Source§

fn borrow(&self) -> &Vec<Self::T>

Implementors§