pub struct Mode(/* private fields */);compiler only.Expand description
Compiler mode flags that affect the database as a whole.
No Default impl is provided to enforce that at least one of
STREAM, BLOCK, or
VECTORED is supplied, to select between the generation
of a streaming, block or vectored database. In addition, other flags may be
supplied to enable or configure specific features such as stream state size.
Implementations§
source§impl Mode
impl Mode
Basic database types.
For now, each database can only be one type (this is checked by hyperscan upon database creation).
source§impl Mode
impl Mode
Stream state precision modes.
These flags are currently only processed when Self::STREAM is requested.
sourcepub const SOM_HORIZON_LARGE: Self = _
pub const SOM_HORIZON_LARGE: Self = _
Use full precision to track start of match offsets in stream state.
This mode will use the most stream state per pattern, but will always return an accurate start of match offset regardless of how far back in the past it was found.
One of the SOM_HORIZON_* modes must be selected to use the
Flags::SOM_LEFTMOST expression flag.
sourcepub const SOM_HORIZON_MEDIUM: Self = _
pub const SOM_HORIZON_MEDIUM: Self = _
Use medium precision to track start of match offsets in stream state.
This mode will use less stream state than
Self::SOM_HORIZON_LARGE and will limit start of
match accuracy to offsets within 2^32 bytes of the end of match offset
reported.
One of the SOM_HORIZON_* modes must be selected to use the
Flags::SOM_LEFTMOST expression flag.
sourcepub const SOM_HORIZON_SMALL: Self = _
pub const SOM_HORIZON_SMALL: Self = _
Use limited precision to track start of match offsets in stream state.
This mode will use less stream state than
Self::SOM_HORIZON_LARGE and will limit start of
match accuracy to offsets within 2^16 bytes of the end of match offset
reported.
One of the SOM_HORIZON_* modes must be selected to use the
Flags::SOM_LEFTMOST expression flag.
Trait Implementations§
source§impl BitAndAssign for Mode
impl BitAndAssign for Mode
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moresource§impl BitOrAssign for Mode
impl BitOrAssign for Mode
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moresource§impl Ord for Mode
impl Ord for Mode
source§impl PartialEq for Mode
impl PartialEq for Mode
source§impl PartialOrd for Mode
impl PartialOrd for Mode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moreimpl Copy for Mode
impl Eq for Mode
impl StructuralEq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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
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
key and return true if they are equal.