Trait validator::Contains [−][src]
pub trait Contains { fn has_element(&self, needle: &str) -> bool; }
Trait to implement if one wants to make the contains
validator
work for more types
Required Methods
fn has_element(&self, needle: &str) -> bool
Implementations on Foreign Types
impl Contains for String
[src]
impl Contains for String
fn has_element(&self, needle: &str) -> bool
[src]
fn has_element(&self, needle: &str) -> bool
impl<'a> Contains for &'a String
[src]
impl<'a> Contains for &'a String
fn has_element(&self, needle: &str) -> bool
[src]
fn has_element(&self, needle: &str) -> bool
impl<'a> Contains for &'a str
[src]
impl<'a> Contains for &'a str
fn has_element(&self, needle: &str) -> bool
[src]
fn has_element(&self, needle: &str) -> bool
impl<'a> Contains for Cow<'a, str>
[src]
impl<'a> Contains for Cow<'a, str>
fn has_element(&self, needle: &str) -> bool
[src]
fn has_element(&self, needle: &str) -> bool
impl<S> Contains for HashMap<String, S>
[src]
impl<S> Contains for HashMap<String, S>
fn has_element(&self, needle: &str) -> bool
[src]
fn has_element(&self, needle: &str) -> bool
impl<'a, S> Contains for &'a HashMap<String, S>
[src]
impl<'a, S> Contains for &'a HashMap<String, S>
fn has_element(&self, needle: &str) -> bool
[src]
fn has_element(&self, needle: &str) -> bool