Trait btlib::atomic_file::TryDefault
source · 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§
sourcefn try_default() -> Result<Self>
fn try_default() -> Result<Self>
Attempt to produce a default value for this type.