Trait solana_runtime::contains::Contains[][src]

pub trait Contains<'a, T: Eq + Hash> {
    type Item: Borrow<T>;
    type Iter: Iterator<Item = Self::Item>;
    fn contains(&self, key: &T) -> bool;
fn contains_iter(&'a self) -> Self::Iter; }

Associated Types

type Item: Borrow<T>[src]

type Iter: Iterator<Item = Self::Item>[src]

Loading content...

Required methods

fn contains(&self, key: &T) -> bool[src]

fn contains_iter(&'a self) -> Self::Iter[src]

Loading content...

Implementations on Foreign Types

impl<'a, T: 'a + Eq + Hash, U: 'a> Contains<'a, T> for HashMap<T, U>[src]

type Item = &'a T

type Iter = Keys<'a, T, U>

impl<'a, T: 'a + Eq + Hash> Contains<'a, T> for HashSet<T>[src]

type Item = &'a T

type Iter = Iter<'a, T>

Loading content...

Implementors

impl<'a, T: 'a + Eq + Hash + Copy> Contains<'a, T> for T[src]

type Item = &'a T

type Iter = Once<&'a T>

Loading content...