Skip to main content

SetQuery

Trait SetQuery 

Source
pub trait SetQuery<Q>: Len
where Q: ?Sized,
{ // Required method fn contains(&self, value: &Q) -> bool; }
Expand description

Common query abstractions for sets.

Required Methods§

Source

fn contains(&self, value: &Q) -> bool

Checks whether a particular value is present in the set.

Implementations on Foreign Types§

Source§

impl<T, Q> SetQuery<Q> for BTreeSet<T>
where T: Ord + Borrow<Q>, Q: Ord,

Available on crate feature std only.
Source§

fn contains(&self, value: &Q) -> bool

Source§

impl<T, Q, BH> SetQuery<Q> for HashSet<T, BH>
where T: Hash + Eq + Borrow<Q>, Q: Hash + Eq + ?Sized, BH: BuildHasher,

Available on crate feature std only.
Source§

fn contains(&self, value: &Q) -> bool

Source§

impl<T, Q, BH> SetQuery<Q> for HashSet<T, BH>
where T: Hash + Eq, Q: Hash + Equivalent<T> + ?Sized, BH: BuildHasher,

Source§

fn contains(&self, value: &Q) -> bool

Implementors§

Source§

impl<T, Q> SetQuery<Q> for FzOrderedSet<T>
where Q: Comparable<T> + ?Sized,

Source§

impl<T, Q> SetQuery<Q> for FzScalarSet<T>
where Q: Scalar + Comparable<T>,

Source§

impl<T, Q, BH> SetQuery<Q> for FzHashSet<T, BH>
where Q: Hash + Equivalent<T> + ?Sized, BH: BuildHasher,

Source§

impl<T, Q, BH> SetQuery<Q> for FzStringSet<T, BH>
where Q: AsRef<str>, BH: BuildHasher, str: Equivalent<T>,

Source§

impl<T, Q, const SZ: usize> SetQuery<Q> for InlineDenseScalarLookupSet<T, SZ>
where Q: Scalar + Comparable<T>,

Source§

impl<T, Q, const SZ: usize> SetQuery<Q> for InlineEytzingerSearchSet<T, SZ>
where Q: Comparable<T> + ?Sized,

Source§

impl<T, Q, const SZ: usize> SetQuery<Q> for InlineScanSet<T, SZ>
where Q: Equivalent<T> + ?Sized,

Source§

impl<T, Q, const SZ: usize, const LTSZ: usize, CM> SetQuery<Q> for InlineSparseScalarLookupSet<T, SZ, LTSZ, CM>

Source§

impl<T, Q, const SZ: usize, const NHS: usize, CM, H> SetQuery<Q> for InlineHashSet<T, SZ, NHS, CM, H>
where Q: Equivalent<T> + ?Sized, CM: CollectionMagnitude, H: Hasher<Q>,

Source§

impl<T, Q, const SZ: usize, const NHS: usize, CM, H> SetQuery<Q> for InlineHashSetNoCollisions<T, SZ, NHS, CM, H>
where Q: Equivalent<T> + ?Sized, CM: CollectionMagnitude, H: Hasher<Q>,