pub trait HasLen { fn len(&self) -> usize; fn is_empty(&self) -> bool { ... } }
Has length trait
Return length
Returns true iff empty.