rocket::form::validate

Trait Contains

Source
pub trait Contains<I> {
    // Required method
    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§

Source

fn contains(&self, item: I) -> bool

Returns true if self contains item.

Implementations on Foreign Types§

Source§

impl Contains<&str> for str

Source§

fn contains(&self, item: &str) -> bool

Source§

impl Contains<&[char]> for str

Source§

fn contains(&self, item: &[char]) -> bool

Source§

impl Contains<char> for str

Source§

fn contains(&self, item: char) -> bool

Source§

impl<F: FnMut(char) -> bool> Contains<F> for str

Source§

fn contains(&self, f: F) -> bool

Source§

impl<I, T: Contains<I> + ?Sized> Contains<I> for &T

Source§

fn contains(&self, item: I) -> bool

Source§

impl<const N: usize> Contains<&[char; N]> for str

Source§

fn contains(&self, item: &[char; N]) -> bool

Implementors§

Source§

impl Contains<&str> for String

Source§

impl Contains<&[char]> for String

Source§

impl Contains<char> for String

Source§

impl<F: FnMut(char) -> bool> Contains<F> for String

Source§

impl<I, T: Contains<I>> Contains<I> for Option<T>

Source§

impl<I, T: Contains<I>> Contains<I> for Result<'_, T>

Source§

impl<T: PartialEq> Contains<&T> for Vec<T>

Source§

impl<T: PartialEq> Contains<T> for Vec<T>

Source§

impl<const N: usize> Contains<&[char; N]> for String