Skip to main content

non_empty

Function non_empty 

Source
pub fn non_empty<T>(items: Vec<T>) -> Option<Vec<T>>
Expand description

Returns None for an empty list or Some(items) otherwise. Individual items are not inspected.