Crate hyperscan_tokio_sys

Crate hyperscan_tokio_sys 

Source
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§

CaptureGroup
Capture group information
CompileError
Compile error information
DatabasePtr
Database pointer wrapper
ExpressionExt
Extended expression info
Flags
MatchFlags
Mode
Platform
Platform information
ScratchPtr
Scratch space pointer wrapper
StreamPtr
Stream pointer wrapper
ValidationError
Pattern validation result
VectorScan
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§

AllocFunc
Memory allocation function type
FreeFunc
Memory free function type
MatchCallback
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