pub trait TryDefault: Sized {
    // Required method
    fn try_default() -> Result<Self>;
}
Expand description

Trait for types which can produce a default value, but which may fail when doing so.

Required Methods§

source

fn try_default() -> Result<Self>

Attempt to produce a default value for this type.

Implementors§