[][src]Trait try_traits::default::TryDefault

pub trait TryDefault: Sized {
    type Error;
    fn try_default() -> Result<Self, Self::Error>;
}

The try trait for Default.

Associated Types

type Error

The type returned in the event of an error.

Loading content...

Required methods

fn try_default() -> Result<Self, Self::Error>

The fallible equivalent of Default::default.

Loading content...

Implementors

impl<T: Default> TryDefault for T[src]

type Error = Infallible

Loading content...