pub enum Pattern<'a> {
Str(&'a str),
Regex(Regex),
}
Expand description
Allows both &str
and Regex
as input for from
.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Pattern<'a>
impl<'a> RefUnwindSafe for Pattern<'a>
impl<'a> Send for Pattern<'a>
impl<'a> Sync for Pattern<'a>
impl<'a> Unpin for Pattern<'a>
impl<'a> UnwindSafe for Pattern<'a>
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