solana_accounts_db::contains

Trait Contains

Source
pub trait Contains<'a, T: Eq + Hash> {
    type Item: Borrow<T>;
    type Iter: Iterator<Item = Self::Item>;

    // Required methods
    fn contains(&self, key: &T) -> bool;
    fn contains_iter(&'a self) -> Self::Iter;
}

Required Associated Types§

Source

type Item: Borrow<T>

Source

type Iter: Iterator<Item = Self::Item>

Required Methods§

Source

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

Source

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

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + Eq + Hash, S: BuildHasher> Contains<'a, T> for HashSet<T, S>

Source§

type Item = &'a T

Source§

type Iter = Iter<'a, T>

Source§

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

Source§

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

Source§

impl<'a, T: 'a + Eq + Hash, U: 'a, S: BuildHasher> Contains<'a, T> for HashMap<T, U, S>

Source§

type Item = &'a T

Source§

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

Source§

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

Source§

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

Implementors§

Source§

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