[][src]Trait stacked::SVec

pub trait SVec: Index<usize, Output = Self::Item> + IndexMut<usize> {
    type Item;
    fn new() -> Self
    where
        Self: Sized
;
fn cap(&self) -> usize;
fn len(&self) -> usize;
fn push(&mut self, t: Self::Item) -> Result<usize, KErr>;
fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Self::Item> + 'a>;
fn iter_owned<'a>(&'a mut self) -> Box<dyn Iterator<Item = Self::Item> + 'a>;
fn clear(&mut self);
fn pop(&mut self) -> Self::Item;
fn insert(&mut self, i: usize, t: Self::Item);
fn remove(&mut self, i: usize) -> Self::Item;
fn reverse(&mut self);
fn iter_mut<'a>(
        &'a mut self
    ) -> Box<dyn Iterator<Item = &'a mut Self::Item> + 'a>;
fn as_opt_slice(&self) -> &[Option<Self::Item>];
fn as_opt_slice_mut(&mut self) -> &mut [Option<Self::Item>]; }

Associated Types

type Item

Loading content...

Required methods

fn new() -> Self where
    Self: Sized

fn cap(&self) -> usize

fn len(&self) -> usize

fn push(&mut self, t: Self::Item) -> Result<usize, KErr>

fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Self::Item> + 'a>

fn iter_owned<'a>(&'a mut self) -> Box<dyn Iterator<Item = Self::Item> + 'a>

fn clear(&mut self)

fn pop(&mut self) -> Self::Item

fn insert(&mut self, i: usize, t: Self::Item)

fn remove(&mut self, i: usize) -> Self::Item

fn reverse(&mut self)

fn iter_mut<'a>(
    &'a mut self
) -> Box<dyn Iterator<Item = &'a mut Self::Item> + 'a>

fn as_opt_slice(&self) -> &[Option<Self::Item>]

fn as_opt_slice_mut(&mut self) -> &mut [Option<Self::Item>]

Loading content...

Implementors

impl<T> SVec for SVec1<T>[src]

type Item = T

impl<T> SVec for SVec1024<T>[src]

type Item = T

impl<T> SVec for SVec128<T>[src]

type Item = T

impl<T> SVec for SVec16<T>[src]

type Item = T

impl<T> SVec for SVec2<T>[src]

type Item = T

impl<T> SVec for SVec2048<T>[src]

type Item = T

impl<T> SVec for SVec256<T>[src]

type Item = T

impl<T> SVec for SVec32<T>[src]

type Item = T

impl<T> SVec for SVec4<T>[src]

type Item = T

impl<T> SVec for SVec4096<T>[src]

type Item = T

impl<T> SVec for SVec512<T>[src]

type Item = T

impl<T> SVec for SVec64<T>[src]

type Item = T

impl<T> SVec for SVec8<T>[src]

type Item = T

impl<T> SVec for SVec8192<T>[src]

type Item = T

Loading content...