Enum hyperscan::expression::info::MatchAtEndBehavior
source · #[repr(i8)]pub enum MatchAtEndBehavior {
WillNeverMatchAtEOD = 0,
MayMatchAtEOD = 1,
WillOnlyMatchAtEOD = 2,
}Available on crate feature
compiler only.Expand description
Whether this expression can produce matches at end of data (EOD).
In streaming mode, EOD matches are raised during
Scratch::flush_eod_sync() or
Scratch::flush_eod(), since it is
only when flush_eod() is called that the EOD location is
known.
Note: trailing \b word boundary assertions may also result in EOD
matches as end-of-data can act as a word boundary.
Variants§
WillNeverMatchAtEOD = 0
Pattern will never match at EOD.
MayMatchAtEOD = 1
Pattern may match at EOD.
WillOnlyMatchAtEOD = 2
Pattern will only match at EOD.
Implementations§
source§impl MatchAtEndBehavior
impl MatchAtEndBehavior
pub fn from_native(matches_at_eod: c_char, matches_only_at_eod: c_char) -> Self
Trait Implementations§
source§impl Clone for MatchAtEndBehavior
impl Clone for MatchAtEndBehavior
source§fn clone(&self) -> MatchAtEndBehavior
fn clone(&self) -> MatchAtEndBehavior
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MatchAtEndBehavior
impl Debug for MatchAtEndBehavior
source§impl Display for MatchAtEndBehavior
impl Display for MatchAtEndBehavior
source§impl Hash for MatchAtEndBehavior
impl Hash for MatchAtEndBehavior
source§impl Ord for MatchAtEndBehavior
impl Ord for MatchAtEndBehavior
source§fn cmp(&self, other: &MatchAtEndBehavior) -> Ordering
fn cmp(&self, other: &MatchAtEndBehavior) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MatchAtEndBehavior
impl PartialEq for MatchAtEndBehavior
source§fn eq(&self, other: &MatchAtEndBehavior) -> bool
fn eq(&self, other: &MatchAtEndBehavior) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for MatchAtEndBehavior
impl PartialOrd for MatchAtEndBehavior
source§fn partial_cmp(&self, other: &MatchAtEndBehavior) -> Option<Ordering>
fn partial_cmp(&self, other: &MatchAtEndBehavior) -> Option<Ordering>
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 Copy for MatchAtEndBehavior
impl Eq for MatchAtEndBehavior
impl StructuralEq for MatchAtEndBehavior
impl StructuralPartialEq for MatchAtEndBehavior
Auto Trait Implementations§
impl RefUnwindSafe for MatchAtEndBehavior
impl Send for MatchAtEndBehavior
impl Sync for MatchAtEndBehavior
impl Unpin for MatchAtEndBehavior
impl UnwindSafe for MatchAtEndBehavior
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.