[][src]Trait idcontain::Flat

pub trait Flat: Sized {
    type Element;
    fn new() -> Self;
fn with_capacity(capacity: usize) -> Self;
fn swap(&mut self, index_a: usize, index_b: usize) -> bool;
fn swap_remove(&mut self, index: usize) -> Option<Self::Element>;
fn replace(
        &mut self,
        index: usize,
        element: Self::Element
    ) -> Result<Self::Element, Self::Element>;
fn push(&mut self, element: Self::Element); }

Associated Types

type Element

Loading content...

Required methods

fn new() -> Self

fn with_capacity(capacity: usize) -> Self

fn swap(&mut self, index_a: usize, index_b: usize) -> bool

fn swap_remove(&mut self, index: usize) -> Option<Self::Element>

fn replace(
    &mut self,
    index: usize,
    element: Self::Element
) -> Result<Self::Element, Self::Element>

fn push(&mut self, element: Self::Element)

Loading content...

Implementations on Foreign Types

impl<T> Flat for Vec<T>[src]

type Element = T

Loading content...

Implementors

Loading content...