Struct one_stack_vec::OneStackVec
[−]
[src]
pub struct OneStackVec<T>(_);
Methods
impl<T> OneStackVec<T>[src]
fn new() -> OneStackVec<T>
fn is_zero(&self) -> bool
fn push(&mut self, item: T)
fn get(&self, index: usize) -> Option<&T>
fn pop(&mut self) -> Option<T>
Removes the last element from a vector and returns it, or None if it is empty.
fn len(&self) -> usize
fn iter<'a>(&'a self) -> Iter<'a, T>
Trait Implementations
impl<T: Clone> Clone for OneStackVec<T>[src]
fn clone(&self) -> OneStackVec<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<T> Debug for OneStackVec<T> where
T: Debug, [src]
T: Debug,
impl<T> PartialEq for OneStackVec<T> where
T: PartialEq, [src]
T: PartialEq,
fn eq(&self, other: &OneStackVec<T>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl<T> Eq for OneStackVec<T> where
T: Eq, [src]
T: Eq,
impl<T> PartialOrd for OneStackVec<T> where
T: PartialOrd<T>, [src]
T: PartialOrd<T>,
fn partial_cmp(&self, other: &OneStackVec<T>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<T> Ord for OneStackVec<T> where
T: Ord, [src]
T: Ord,
fn cmp(&self, other: &OneStackVec<T>) -> Ordering
This method returns an Ordering between self and other. Read more
impl<T> Serialize for OneStackVec<T> where
T: Serialize, [src]
T: Serialize,
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de, T> Deserialize<'de> for OneStackVec<T> where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
fn deserialize<D>(deserializer: D) -> Result<OneStackVec<T>, D::Error> where
D: Deserializer<'de>,
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more