Skip to main content

default

Function default 

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

A short-hand for calling Default::default(). You may also specify T, but I recommend using T::default() over default::<T>() where you may.