pub enum Matcher {
Function(Rc<MatcherFunction>),
Regex(Regex),
Number(f64),
String(String),
}
Variants§
Trait Implementations§
Source§impl From<Rc<dyn Fn(String, Option<&Element>) -> bool>> for Matcher
impl From<Rc<dyn Fn(String, Option<&Element>) -> bool>> for Matcher
Source§fn from(value: Rc<MatcherFunction>) -> Self
fn from(value: Rc<MatcherFunction>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Matcher
impl !RefUnwindSafe for Matcher
impl !Send for Matcher
impl !Sync for Matcher
impl Unpin for Matcher
impl !UnwindSafe for Matcher
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