pub struct SelectorValidator;Expand description
Selector uniqueness checker.
Implementations§
Source§impl SelectorValidator
impl SelectorValidator
Sourcepub fn check_unique(count: usize, pattern: &str) -> Result<(), ValidationError>
pub fn check_unique(count: usize, pattern: &str) -> Result<(), ValidationError>
Check that a pattern match count is exactly 1.
Sourcepub fn check_found(count: usize, pattern: &str) -> Result<(), ValidationError>
pub fn check_found(count: usize, pattern: &str) -> Result<(), ValidationError>
Check that a pattern matched at least once.
Auto Trait Implementations§
impl Freeze for SelectorValidator
impl RefUnwindSafe for SelectorValidator
impl Send for SelectorValidator
impl Sync for SelectorValidator
impl Unpin for SelectorValidator
impl UnsafeUnpin for SelectorValidator
impl UnwindSafe for SelectorValidator
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