Enum hyperscan::SomHorizon
source · [−]#[repr(u32)]
pub enum SomHorizon {
Large,
Medium,
Small,
}
Expand description
Defines the precision to track start of match offsets in stream state.
Variants
Large
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.
Medium
use medium precision to track start of match offsets in stream state.
This mode will use less stream state than @ref HS_MODE_SOM_HORIZON_LARGE and will limit start of match accuracy to offsets within 2^32 bytes of the end of match offset reported.
Small
use limited precision to track start of match offsets in stream state.
This mode will use less stream state than SomHorizon::Large
and
will limit start of match accuracy to offsets
within 2^16 bytes of the end of match offset reported.
Trait Implementations
sourceimpl Clone for SomHorizon
impl Clone for SomHorizon
sourcefn clone(&self) -> SomHorizon
fn clone(&self) -> SomHorizon
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for SomHorizon
impl Debug for SomHorizon
sourceimpl Ord for SomHorizon
impl Ord for SomHorizon
sourcefn cmp(&self, other: &SomHorizon) -> Ordering
fn cmp(&self, other: &SomHorizon) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<SomHorizon> for SomHorizon
impl PartialEq<SomHorizon> for SomHorizon
sourcefn eq(&self, other: &SomHorizon) -> bool
fn eq(&self, other: &SomHorizon) -> bool
sourceimpl PartialOrd<SomHorizon> for SomHorizon
impl PartialOrd<SomHorizon> for SomHorizon
sourcefn partial_cmp(&self, other: &SomHorizon) -> Option<Ordering>
fn partial_cmp(&self, other: &SomHorizon) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more