[−][src]Struct hyperscan_sys::hs_expr_info
A type containing information related to an expression that is returned by @ref hs_expression_info() or @ref hs_expression_ext_info.
Fields
min_width: c_uint
The minimum length in bytes of a match for the pattern.
Note: in some cases when using advanced features to suppress matches (such as extended parameters or the @ref HS_FLAG_SINGLEMATCH flag) this may represent a conservative lower bound for the true minimum length of a match.
max_width: c_uint
The maximum length in bytes of a match for the pattern. If the pattern has an unbounded maximum length, this will be set to the maximum value of an unsigned int (UINT_MAX).
Note: in some cases when using advanced features to suppress matches (such as extended parameters or the @ref HS_FLAG_SINGLEMATCH flag) this may represent a conservative upper bound for the true maximum length of a match.
unordered_matches: c_char
Whether this expression can produce matches that are not returned in order, such as those produced by assertions. Zero if false, non-zero if true.
matches_at_eod: c_char
Whether this expression can produce matches at end of data (EOD). In streaming mode, EOD matches are raised during @ref hs_close_stream(), since it is only when @ref hs_close_stream() is called that the EOD location is known. Zero if false, non-zero if true.
Note: trailing \b
word boundary assertions may also result in EOD
matches as end-of-data can act as a word boundary.
matches_only_at_eod: c_char
Whether this expression can only produce matches at end of data (EOD). In streaming mode, all matches for this expression are raised during @ref hs_close_stream(). Zero if false, non-zero if true.
Trait Implementations
impl Clone for hs_expr_info
[src]
fn clone(&self) -> hs_expr_info
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for hs_expr_info
[src]
impl Debug for hs_expr_info
[src]
impl Default for hs_expr_info
[src]
fn default() -> hs_expr_info
[src]
impl PartialEq<hs_expr_info> for hs_expr_info
[src]
fn eq(&self, other: &hs_expr_info) -> bool
[src]
fn ne(&self, other: &hs_expr_info) -> bool
[src]
impl StructuralPartialEq for hs_expr_info
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,