Expand description
Low-level FFI bindings to VectorScan/Hyperscan
This crate provides raw bindings and safe wrappers around the VectorScan C API.
Re-exports§
pub use hs_database_t as RawDatabase;pub use hs_stream_t as RawStream;pub use hs_scratch_t as RawScratch;pub use hs_compile_error_t as RawCompileError;pub use bitflags;
Structs§
- Capture
Group - Capture group information
- Compile
Error - Compile error information
- Database
Ptr - Database pointer wrapper
- Expression
Ext - Extended expression info
- Flags
- Match
Flags - Mode
- Platform
- Platform information
- Scratch
Ptr - Scratch space pointer wrapper
- Stream
Ptr - Stream pointer wrapper
- Validation
Error - Pattern validation result
- Vector
Scan - Safe wrappers around VectorScan API
- hs_
compile_ error - hs_
database - hs_
expr_ ext - hs_
expr_ info - hs_
platform_ info - hs_
scratch - hs_
stream
Enums§
- Matching
- Match callback return value
Constants§
- HS_
ARCH_ ERROR - HS_
BAD_ ALIGN - HS_
BAD_ ALLOC - HS_
COMPILER_ ERROR - HS_
CPU_ FEATURES_ AVX2 - HS_
CPU_ FEATURES_ AVX512 - HS_
CPU_ FEATURES_ AVX512VBMI - HS_
DB_ MODE_ ERROR - HS_
DB_ PLATFORM_ ERROR - HS_
DB_ VERSION_ ERROR - HS_
EXT_ FLAG_ EDIT_ DISTANCE - HS_
EXT_ FLAG_ HAMMING_ DISTANCE - HS_
EXT_ FLAG_ MAX_ OFFSET - HS_
EXT_ FLAG_ MIN_ LENGTH - HS_
EXT_ FLAG_ MIN_ OFFSET - HS_
FLAG_ ALLOWEMPTY - HS_
FLAG_ CASELESS - HS_
FLAG_ COMBINATION - HS_
FLAG_ DOTALL - HS_
FLAG_ MULTILINE - HS_
FLAG_ PREFILTER - HS_
FLAG_ QUIET - HS_
FLAG_ SINGLEMATCH - HS_
FLAG_ SOM_ LEFTMOST - HS_
FLAG_ UCP - HS_
FLAG_ UTF8 - HS_
INSUFFICIENT_ SPACE - HS_
INVALID - HS_
MAJOR - HS_
MINOR - HS_
MODE_ BLOCK - HS_
MODE_ NOSTREAM - HS_
MODE_ SOM_ HORIZON_ LARGE - HS_
MODE_ SOM_ HORIZON_ MEDIUM - HS_
MODE_ SOM_ HORIZON_ SMALL - HS_
MODE_ STREAM - HS_
MODE_ VECTORED - HS_
NOMEM - HS_
OFFSET_ PAST_ HORIZON - HS_
PATCH - HS_
SCAN_ TERMINATED - HS_
SCRATCH_ IN_ USE - HS_
SUCCESS - HS_
TUNE_ FAMILY_ BDW - HS_
TUNE_ FAMILY_ GENERIC - HS_
TUNE_ FAMILY_ GLM - HS_
TUNE_ FAMILY_ HSW - HS_
TUNE_ FAMILY_ ICL - HS_
TUNE_ FAMILY_ ICX - HS_
TUNE_ FAMILY_ IVB - HS_
TUNE_ FAMILY_ SKL - HS_
TUNE_ FAMILY_ SKX - HS_
TUNE_ FAMILY_ SLM - HS_
TUNE_ FAMILY_ SNB - HS_
UNKNOWN_ ERROR
Functions§
- compile_
extended - Compile multiple patterns with extended parameters
- hs_
alloc_ ⚠scratch - hs_
clone_ ⚠scratch - hs_
close_ ⚠stream - hs_
compile ⚠ - hs_
compile_ ⚠ext_ multi - hs_
compile_ ⚠lit - hs_
compile_ ⚠lit_ multi - hs_
compile_ ⚠multi - hs_
compress_ ⚠stream - hs_
copy_ ⚠stream - hs_
database_ ⚠info - hs_
database_ ⚠size - hs_
deserialize_ ⚠database - hs_
deserialize_ ⚠database_ at - hs_
expand_ ⚠stream - hs_
expression_ ⚠ext_ info - hs_
expression_ ⚠info - hs_
free_ ⚠compile_ error - hs_
free_ ⚠database - hs_
free_ ⚠scratch - hs_
open_ ⚠stream - hs_
populate_ ⚠platform - hs_
reset_ ⚠and_ copy_ stream - hs_
reset_ ⚠and_ expand_ stream - hs_
reset_ ⚠stream - hs_scan⚠
- hs_
scan_ ⚠stream - hs_
scan_ ⚠vector - hs_
scratch_ ⚠size - hs_
serialize_ ⚠database - hs_
serialized_ ⚠database_ info - hs_
serialized_ ⚠database_ size - hs_
set_ ⚠allocator - hs_
set_ ⚠database_ allocator - hs_
set_ ⚠misc_ allocator - hs_
set_ ⚠scratch_ allocator - hs_
set_ ⚠stream_ allocator - hs_
stream_ ⚠size - hs_
valid_ ⚠platform - hs_
version ⚠
Type Aliases§
- Alloc
Func - Memory allocation function type
- Free
Func - Memory free function type
- Match
Callback - Type-erased callback
- hs_
alloc_ t - hs_
compile_ error_ t - hs_
database_ t - hs_
error_ t - hs_
expr_ ext_ t - hs_
expr_ info_ t - hs_
free_ t - hs_
platform_ info_ t - hs_
scratch_ t - hs_
stream_ t - match_
event_ handler