logo
pub trait Contains<I> {
    fn contains(&self, item: I) -> bool;
}
Expand description

Types for values that contain items.

At present, these are:

typecontains
&str, String&str, char, &[char] F: FnMut(char) -> bool
Vec<T>T, &T
Option<T>I where T: Contains<I>
form::Result<'_, T>I where T: Contains<I>

Required Methods

Returns true if self contains item.

Implementations on Foreign Types

Implementors