Function tool::empty[][src]

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

True if the value is "empty"

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