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.
Multiple flags may be used by ORing them together.
Implementations§
Source§impl Mode
§Basic Database Types
For now, each database can only be one of these types (this is checked by
vectorscan upon database creation).
impl Mode
§Basic Database Types
For now, each database can only be one of these types (this is checked by vectorscan upon database creation).
Source§impl Mode
§Stream State Precision Modes
These flags are currently only processed when Self::STREAM is requested.
impl Mode
§Stream State Precision Modes
These flags are currently only processed when Self::STREAM is requested.
Sourcepub const SOM_HORIZON_LARGE: Self
Available on crate feature stream only.
pub const SOM_HORIZON_LARGE: Self
stream only.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
Available on crate feature stream only.
pub const SOM_HORIZON_MEDIUM: Self
stream only.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
Available on crate feature stream only.
pub const SOM_HORIZON_SMALL: Self
stream only.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 moreimpl Copy for Mode
impl Eq for Mode
Source§impl Ord for Mode
impl Ord for Mode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Mode
impl PartialOrd for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin 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<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
key and return true if they are equal.