ink_env::chain_extension

Trait IsResultType

Source
pub trait IsResultType: IsResultTypeSealed {
    type Ok;
    type Err;
}
Expand description

Extract Ok and Err variants from Result type.

Required Associated Types§

Source

type Ok

The T type of the Result<T, E>.

Source

type Err

The E type of the Result<T, E>.

Implementations on Foreign Types§

Source§

impl<T, E> IsResultType for Result<T, E>

Source§

type Ok = T

Source§

type Err = E

Implementors§