Skip to main content

contains

Function contains 

Source
pub fn contains(haystack: &[u8], needle: &[u8]) -> bool
Expand description

PHP str_contains($haystack, $needle): an empty needle is in every haystack.