Trait rs_graph::collections::ItemStack[][src]

pub trait ItemStack<I> {
    fn len(&self) -> usize;
fn clear(&mut self);
fn push(&mut self, u: I);
fn pop(&mut self) -> Option<I>;
fn top(&self) -> Option<&I>;
fn top_mut(&mut self) -> Option<&mut I>; fn is_empty(&self) -> bool { ... } }

Required methods

fn len(&self) -> usize[src]

fn clear(&mut self)[src]

fn push(&mut self, u: I)[src]

fn pop(&mut self) -> Option<I>[src]

fn top(&self) -> Option<&I>[src]

fn top_mut(&mut self) -> Option<&mut I>[src]

Loading content...

Provided methods

fn is_empty(&self) -> bool[src]

Loading content...

Implementations on Foreign Types

impl<'a, I, D> ItemStack<I> for &'a mut D where
    D: ItemStack<I>, 
[src]

fn is_empty(&self) -> bool[src]

fn len(&self) -> usize[src]

fn clear(&mut self)[src]

fn push(&mut self, u: I)[src]

fn pop(&mut self) -> Option<I>[src]

fn top(&self) -> Option<&I>[src]

fn top_mut(&mut self) -> Option<&mut I>[src]

impl<I> ItemStack<I> for Vec<I>[src]

fn is_empty(&self) -> bool[src]

fn len(&self) -> usize[src]

fn clear(&mut self)[src]

fn push(&mut self, u: I)[src]

fn pop(&mut self) -> Option<I>[src]

fn top(&self) -> Option<&I>[src]

fn top_mut(&mut self) -> Option<&mut I>[src]

Loading content...

Implementors

Loading content...