pub struct Regex<S: TypeString>(/* private fields */);Available on crate features
alloc and regex only.Trait Implementations§
Source§impl<S: TypeString> Default for Regex<S>
impl<S: TypeString> Default for Regex<S>
Source§impl<S: TypeString, T: AsRef<str>> Predicate<T> for Regex<S>
impl<S: TypeString, T: AsRef<str>> Predicate<T> for Regex<S>
Source§fn error() -> ErrorMessage
fn error() -> ErrorMessage
An error message to display when the predicate doesn’t hold.
Source§impl<S: TypeString, T: AsRef<str>> StatefulPredicate<T> for Regex<S>
impl<S: TypeString, T: AsRef<str>> StatefulPredicate<T> for Regex<S>
Source§unsafe fn optimize(value: &T)
unsafe fn optimize(value: &T)
Applies a potentially unsafe optimization to call sites that can take advantage of
information provided by the predicate. This function is unused by
refined unless
the optimized feature is enabled. Read moreSource§fn error(&self) -> ErrorMessage
fn error(&self) -> ErrorMessage
An error message to display when the predicate doesn’t hold.
Auto Trait Implementations§
impl<S> Freeze for Regex<S>
impl<S> RefUnwindSafe for Regex<S>where
S: RefUnwindSafe,
impl<S> Send for Regex<S>where
S: Send,
impl<S> Sync for Regex<S>where
S: Sync,
impl<S> Unpin for Regex<S>where
S: Unpin,
impl<S> UnwindSafe for Regex<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more