Skip to main content

find_word

Function find_word 

Source
pub fn find_word(haystack: &[char], needle: &str, from: usize) -> Option<usize>
Expand description

Position of needle as a whole word in folded haystack, from from on.

Whole words only: “otp” must not match inside “hotpot”.