pub struct Re { /* private fields */ }
Implementations§
Source§impl Re
impl Re
pub fn new(expression: &str) -> Result<Re, &'static str>
pub fn is_match(&self, text: &str) -> bool
pub fn into_expression(self) -> Expression
pub fn as_expression(&self) -> &Expression
Trait Implementations§
Source§impl From<Re> for Expression
impl From<Re> for Expression
Source§fn from(re: Re) -> Expression
fn from(re: Re) -> Expression
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Re
impl RefUnwindSafe for Re
impl Send for Re
impl Sync for Re
impl Unpin for Re
impl UnwindSafe for Re
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