pub trait CanBeEmpty { // Required method fn is_empty(&self) -> bool; }
Trait for types that have an “empty” state.
If Default is implemented for Self, Self::default().is_empty() should always be true.
Default
Self
Self::default().is_empty()
true
Check whether self is empty.
self