pub fn non_empty<T>(items: Vec<T>) -> Option<Vec<T>>
Returns None for an empty list or Some(items) otherwise. Individual items are not inspected.
None
Some(items)