#[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_sync()
,
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.
Trait Implementations§
Source§impl Clone for MatchAtEndBehavior
impl Clone for MatchAtEndBehavior
Source§fn clone(&self) -> MatchAtEndBehavior
fn clone(&self) -> MatchAtEndBehavior
Returns a duplicate 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§impl PartialOrd for MatchAtEndBehavior
impl PartialOrd for MatchAtEndBehavior
impl Copy for MatchAtEndBehavior
impl Eq for MatchAtEndBehavior
impl StructuralPartialEq for MatchAtEndBehavior
Auto Trait Implementations§
impl Freeze for MatchAtEndBehavior
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.