Function empty

Source
pub fn empty<T: ?Sized + IsEmpty>(value: &T) -> bool
Expand description

True if the value is “empty”

For example: [], "", Some([]), None::<T: Empty>, etc…