default

Function default 

Source
pub fn default<T: Default>() -> T
Expand description

Yield the default value for a type that implements Default.

This is a copy of the default function from the standard library, which is not yet stable.