pub trait Empty {
// Required method
fn empty() -> Self;
}
Expand description
Types that have a notion of “being empty” and can create such an empty instance.
This is very similar to Default
from the standard library, but makes it
explicit that the returned instance is empty and not just any default
instance. This trait is implemented for several standard types.