Crate extra_default [−] [src]
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
DefaultBox |
Allows creating a default box of a type. |
DefaultOwned |
Allows creating a default owned version of a type. |
DefaultRef |
Allows creating a default reference to a type. |