data_structure_traits/
collection.rs

1pub trait Collection {
2    fn len(&self) -> usize;
3    #[inline(always)]
4    fn is_empty(&self) -> bool {
5        self.len() == 0
6    }
7}