pub enum TextMatch {
String(String),
Regex(String),
}Expand description
Represents text matching options for Testing Library queries
Supports both string and regex patterns like the JavaScript Testing Library
Exact vs substring behavior is controlled by the exact option on queries
Variants§
String(String)
String match (exact vs substring controlled by query options)
Regex(String)
Regular expression match
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextMatch
impl RefUnwindSafe for TextMatch
impl Send for TextMatch
impl Sync for TextMatch
impl Unpin for TextMatch
impl UnsafeUnpin for TextMatch
impl UnwindSafe for TextMatch
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