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

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

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

pub 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...