Skip to main content

ValidateContains

Trait ValidateContains 

Source
pub trait ValidateContains {
    // Required method
    fn validate_contains(&self, needle: &str) -> bool;
}

Required Methods§

Source

fn validate_contains(&self, needle: &str) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ValidateContains for String

Source§

fn validate_contains(&self, needle: &str) -> bool

Source§

impl<'a> ValidateContains for &'a str

Source§

fn validate_contains(&self, needle: &str) -> bool

Source§

impl<'cow, T> ValidateContains for Cow<'cow, T>
where T: ToOwned + ?Sized, &'a T: for<'a> ValidateContains,

Source§

fn validate_contains(&self, needle: &str) -> bool

Source§

impl<S, H> ValidateContains for HashMap<String, S, H>
where H: BuildHasher,

Source§

fn validate_contains(&self, needle: &str) -> bool

Source§

impl<T> ValidateContains for &T

Source§

fn validate_contains(&self, needle: &str) -> bool

Source§

impl<T> ValidateContains for Option<T>

Source§

fn validate_contains(&self, needle: &str) -> bool

Implementors§