#[repr(C)]
pub struct hs_expr_info { pub min_width: c_uint, pub max_width: c_uint, pub unordered_matches: c_char, pub matches_at_eod: c_char, pub matches_only_at_eod: c_char, }
Expand description

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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.