Macro rust_assembler::contains_bytes 
source · macro_rules! contains_bytes { ( $bytes:expr; $array:expr ) => { ... }; }
Expand description
Returns a bool saying whether the given string contains the specified pattern, expressed as an array of &str. Avoids all heap allocations.
Examples
 
let s = "Come va, amico?";
assert_eq!(contains!(s; ["me", "v", "a, a"]), true);