Function default
pub fn default<T: Default>() -> TExpand
Builds a default value for a type implementing the Default trait.
Examples
let zero: uint<8> = default();
let none: Option<bool> = default();
assert zero == 0;
assert none == None;pub fn default<T: Default>() -> TBuilds a default value for a type implementing the Default trait.
let zero: uint<8> = default();
let none: Option<bool> = default();
assert zero == 0;
assert none == None;