Function contains

Source
pub fn contains<T>(haystack: &[T], needle: &[T]) -> bool
where T: PartialEq,
Expand description

Checks whether haystack contains needle