Registry / utility / twoway

twoway

JSON →
library0.2.2rscratesunverified

Fast substring search for strings and byte strings with optional SSE4.2 acceleration, now deprecated in favor of memchr.

# Cargo.toml [dependencies] twoway = "0.2.2"
INSTALL
IMPORT
SIG · TWOWAY
T
twoway
utilityrustv0.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

find_bytes
✓ use twoway::find_bytes;

Demonstrates substring search using twoway.

use twoway::find_bytes; let text = b"hello world"; let pattern = b"world"; if let Some(pos) = find_bytes(text, pattern) { println!("Found at {}", pos); }
Debug
Known issues
breakingDeprecated - use memchr instead
fix
Replace with memchr crate for continued support
affects: >=0.2.0
Upgrade
Version history
0.2.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
twoway — cargo add twoway · libregistry