matches

Function matches 

Source
pub fn matches<H, P>(haystack: H, needle: P) -> Matches<H, P::Searcher> 
where H: Haystack, P: Needle<H>, H::Target: Hay,