[][src]Trait rust_fp_pfds::Stack

pub trait Stack<A> {
    pub fn cons(self, value: A) -> Self;
pub fn head(&self) -> Result<&A, StackError>;
pub fn tail(&self) -> Rc<Self>;
pub fn size(&self) -> usize;
pub fn update(self, index: u32, new_value: A) -> Result<Self, StackError>
    where
        Self: Sized
;
pub fn get(&self, i: u32) -> Result<&A, StackError>; }

Required methods

pub fn cons(self, value: A) -> Self[src]

pub fn head(&self) -> Result<&A, StackError>[src]

pub fn tail(&self) -> Rc<Self>[src]

pub fn size(&self) -> usize[src]

pub fn update(self, index: u32, new_value: A) -> Result<Self, StackError> where
    Self: Sized
[src]

pub fn get(&self, i: u32) -> Result<&A, StackError>[src]

Loading content...

Implementors

impl<A> Stack<A> for List<A>[src]

Loading content...