Skip to main content

first

Function first 

Source
pub fn first<T: Clone>(items: &[T], when: fn(&T) -> bool) -> Option<T>