pub trait ConfigGetResultExt<T> {
// Required method
fn optional(self) -> Result<Option<T>, ConfigGetError>;
}Expand description
Extension methods for Result<T, ConfigGetError>.
Required Methods§
Sourcefn optional(self) -> Result<Option<T>, ConfigGetError>
fn optional(self) -> Result<Option<T>, ConfigGetError>
Converts NotFound error to Ok(None), leaving other errors.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".