🦀
Rust Cookbook
  • Introduction
  • Rust Introduction
  • Collections
    • Hashing
  • Text Processing
    • Splitting a string
    • Converting a string to vectors and back
    • Twoway
  • Benchmarking
    • criterion
  • Testing
  • Package Management
    • Cargo workspaces
  • Concurrent Programming
    • Actor model
      • Actix actors
      • Bastion
  • Parallel Programming
    • Ryaon
  • Optimisations
    • Cache alignment
  • TODO
Powered by GitBook
On this page
  1. Text Processing

Twoway

PreviousConverting a string to vectors and backNextBenchmarking

Last updated 5 years ago

Fast substring search by two way algorithm

implements for substring search which is highly optimised using SMID acceleration (depending on availability).

Example usage,

let loc = twoway::find_str("hello there how are you?", "there");
assert_eq!(Some(6), loc);
twoway
Two way algorithm