find_first

Function find_first 

Source
pub fn find_first<'a, F>(data: &'a [Metric], f: F) -> &'a Metric
where for<'r> F: FnMut(&'r &'a Metric) -> bool,
Expand description

Returns the first metric that evaluates to “true” for the function.