Struct rustc_data_structures::tiny_list::TinyList [−][src]
pub struct TinyList<T: PartialEq> { /* fields omitted */ }
Methods
impl<T: PartialEq> TinyList<T>[src]
impl<T: PartialEq> TinyList<T>pub fn new() -> TinyList<T>[src]
pub fn new() -> TinyList<T>pub fn new_single(data: T) -> TinyList<T>[src]
pub fn new_single(data: T) -> TinyList<T>pub fn insert(&mut self, data: T)[src]
pub fn insert(&mut self, data: T)pub fn remove(&mut self, data: &T) -> bool[src]
pub fn remove(&mut self, data: &T) -> boolpub fn contains(&self, data: &T) -> bool[src]
pub fn contains(&self, data: &T) -> boolpub fn len(&self) -> usize[src]
pub fn len(&self) -> usizeTrait Implementations
impl<T: Clone + PartialEq> Clone for TinyList<T>[src]
impl<T: Clone + PartialEq> Clone for TinyList<T>fn clone(&self) -> TinyList<T>[src]
fn clone(&self) -> TinyList<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<T: Hash + PartialEq> Hash for TinyList<T>[src]
impl<T: Hash + PartialEq> Hash for TinyList<T>fn hash<__HT: Hasher>(&self, state: &mut __HT)[src]
fn hash<__HT: Hasher>(&self, state: &mut __HT)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl<T: Debug + PartialEq> Debug for TinyList<T>[src]
impl<T: Debug + PartialEq> Debug for TinyList<T>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: PartialEq + PartialEq> PartialEq for TinyList<T>[src]
impl<T: PartialEq + PartialEq> PartialEq for TinyList<T>