Container

Trait Container 

Source
pub trait Container {
    type T;

    // Required method
    fn as_mut(&mut self) -> &mut [Self::T];
}
Expand description

Abstract over containers that produce &mut [T]

Required Associated Types§

Source

type T

Required Methods§

Source

fn as_mut(&mut self) -> &mut [Self::T]

Implementations on Foreign Types§

Source§

impl<T> Container for Box<[T]>

Source§

type T = T

Source§

fn as_mut(&mut self) -> &mut [Self::T]

Source§

impl<T> Container for Vec<T>

Source§

type T = T

Source§

fn as_mut(&mut self) -> &mut [Self::T]

Source§

impl<T, const N: usize> Container for [T; N]

Source§

type T = T

Source§

fn as_mut(&mut self) -> &mut [T]

Implementors§