Registry / utility / memmem

memmem

JSON →
library0.1.1rscratesunverified

Substring searching using efficient algorithms (e.g., Two-Way, SIMD).

# Cargo.toml [dependencies] memmem = "0.1.1"
INSTALL
IMPORT
SIG · MEMMEM
M
memmem
utilityrustv0.1.1
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
use memmem::find;

Find a substring in a byte slice.

use memmem::find; let haystack = b"Hello, world!"; let needle = b"world"; if let Some(pos) = find(haystack, needle) { println!("Found at index {}", pos); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
memmem — cargo add memmem · libregistry