pub fn equals_any<Candidates>(item: &str, candidates: Candidates) -> boolExpand description
Reports whether any of candidates equals item.
Unlike a slice’s contains, the candidates need not share the type of
item, so a list of String is searched for a &str without allocating.