attribute_derive::utils

Trait 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§