Struct vectorscan::matchers::Match
source · pub struct Match<'a> {
pub id: ExpressionIndex,
pub source: ByteSlice<'a>,
}
Expand description
Match object returned when searching a single contiguous string.
This is returned by e.g.
Scratch::scan_sync()
.
Fields§
§id: ExpressionIndex
ID of matched expression, or 0
if unspecified.
source: ByteSlice<'a>
The entire text matching the given pattern.
Trait Implementations§
source§impl<'a> Ord for Match<'a>
impl<'a> Ord for Match<'a>
source§impl<'a> PartialEq for Match<'a>
impl<'a> PartialEq for Match<'a>
source§impl<'a> PartialOrd for Match<'a>
impl<'a> PartialOrd for Match<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a> Copy for Match<'a>
impl<'a> Eq for Match<'a>
impl<'a> StructuralEq for Match<'a>
impl<'a> StructuralPartialEq for Match<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Match<'a>
impl<'a> Send for Match<'a>
impl<'a> Sync for Match<'a>
impl<'a> Unpin for Match<'a>
impl<'a> UnwindSafe for Match<'a>
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.