Expand description
This crate provides additional Default
traits which are most useful for slices and strings.
DefaultRef
is imiplemented forfor<'a> &'a Self: Default
.DefaultBox
is imiplemented forBox<Self>: Default
.DefaultOwned
is imiplemented for<Self as ToOwned>::Owned: Default
.
Traitsยง
- Allows creating a default box of a type.
- Allows creating a default owned version of a type.
- Allows creating a default reference to a type.