Trait attribute_derive::utils::Transpose

source ·
pub trait Transpose<T> {
    // Required method
    fn transpose(self) -> T;
}
Expand description

Enables the transpose function on FlagOrValue containing or being contained in Option or Result.

Required Methods§

source

fn transpose(self) -> T

Should behave equivalent to the built-in transpose functions available on Result<Option> and Option<Result>.

Implementors§