pub trait MaybeLength { fn len(&self) -> Option<usize>; fn is_empty(&self) -> bool; }
Types that implement this trait expose a length function
Returns the size of the object
Returns true if the object is empty