Skip to main content

ConfigGetResultExt

Trait ConfigGetResultExt 

Source
pub trait ConfigGetResultExt<T> {
    // Required method
    fn optional(self) -> Result<Option<T>, ConfigGetError>;
}
Expand description

Extension methods for Result<T, ConfigGetError>.

Required Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl<T> ConfigGetResultExt<T> for Result<T, ConfigGetError>

Implementors§