pub struct SetMatches { /* private fields */ }Expand description
Which patterns of a set matched, one verdict per index.
The counterpart of the regex crate’s SetMatches. Every index carries a
verdict, so asking about one pattern is a lookup rather than a search
through the list PatternSet::matches returns.
Implementations§
Source§impl SetMatches
impl SetMatches
Sourcepub fn matched(&self, i: usize) -> bool
pub fn matched(&self, i: usize) -> bool
Whether the pattern at i matched. An index past the set reads false.
Sourcepub fn matched_any(&self) -> bool
pub fn matched_any(&self) -> bool
Whether any pattern matched.
Sourcepub fn matched_all(&self) -> bool
pub fn matched_all(&self) -> bool
Whether every pattern matched.
Trait Implementations§
Source§impl Clone for SetMatches
impl Clone for SetMatches
Source§impl Debug for SetMatches
impl Debug for SetMatches
Source§impl Default for SetMatches
impl Default for SetMatches
impl Eq for SetMatches
Source§impl PartialEq for SetMatches
impl PartialEq for SetMatches
impl StructuralPartialEq for SetMatches
Auto Trait Implementations§
impl Freeze for SetMatches
impl RefUnwindSafe for SetMatches
impl Send for SetMatches
impl Sync for SetMatches
impl Unpin for SetMatches
impl UnsafeUnpin for SetMatches
impl UnwindSafe for SetMatches
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