pub trait HasMember<A> {
// Required method
fn has_member(&self, element: &A) -> bool;
}Expand description
Determines whether the given element is part of a value or member of a collection.
This is usually a property of some kind of container like String, Vec,
HashSet or &[T].
Required Methods§
Sourcefn has_member(&self, element: &A) -> bool
fn has_member(&self, element: &A) -> bool
Returns whether the given element is part of this value or a member of it