[][src]Trait validator::Contains

pub trait Contains {
#[must_use]    fn has_element(&self, needle: &str) -> bool;
}

Trait to implement if one wants to make the contains validator work for more types

Required methods

#[must_use]fn has_element(&self, needle: &str) -> bool

Loading content...

Implementations on Foreign Types

impl Contains for String[src]

impl<'a> Contains for &'a String[src]

impl<'a> Contains for &'a str[src]

impl<'a> Contains for Cow<'a, str>[src]

impl<S, H: BuildHasher> Contains for HashMap<String, S, H>[src]

impl<'a, S, H: BuildHasher> Contains for &'a HashMap<String, S, H>[src]

Loading content...

Implementors

Loading content...