Trait ValidateRegex

Source
pub trait ValidateRegex {
    // Required method
    fn validate_regex(&self, regex: impl AsRegex) -> bool;
}

Required Methods§

Source

fn validate_regex(&self, regex: impl AsRegex) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ValidateRegex for &str

Source§

fn validate_regex(&self, regex: impl AsRegex) -> bool

Source§

impl ValidateRegex for str

Source§

fn validate_regex(&self, regex: impl AsRegex) -> bool

Source§

impl ValidateRegex for String

Source§

fn validate_regex(&self, regex: impl AsRegex) -> bool

Source§

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

Source§

fn validate_regex(&self, regex: impl AsRegex) -> bool

Source§

impl<T> ValidateRegex for Option<T>
where T: ValidateRegex,

Source§

fn validate_regex(&self, regex: impl AsRegex) -> bool

Source§

impl<T> ValidateRegex for &T
where T: ValidateRegex,

Source§

fn validate_regex(&self, regex: impl AsRegex) -> bool

Source§

impl<T: ValidateRegex> ValidateRegex for Box<T>

Source§

fn validate_regex(&self, regex: impl AsRegex) -> bool

Source§

impl<T: ValidateRegex> ValidateRegex for Rc<T>

Source§

fn validate_regex(&self, regex: impl AsRegex) -> bool

Source§

impl<T: ValidateRegex> ValidateRegex for Arc<T>

Source§

fn validate_regex(&self, regex: impl AsRegex) -> bool

Implementors§