pub trait Contains<I> {
// Required method
fn contains(&self, item: I) -> bool;
}Expand description
Types for values that contain items.
At present, these are:
| type | contains |
|---|---|
&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> |