pub fn is_empty_or_contains<T, Q>(allowed: &BTreeSet<T>, item: &Q) -> boolwhere T: Borrow<Q> + Ord, Q: Ord + ?Sized,
Reports whether allowed is empty or contains item.
allowed
item
An empty set acts as an unrestricted allowlist and selects every candidate.