Skip to main content

is_empty_or_contains

Function is_empty_or_contains 

Source
pub fn is_empty_or_contains<T, Q>(allowed: &BTreeSet<T>, item: &Q) -> bool
where T: Borrow<Q> + Ord, Q: Ord + ?Sized,
Expand description

Reports whether allowed is empty or contains item.

An empty set acts as an unrestricted allowlist and selects every candidate.