Skip to main content

OkError

Trait OkError 

Source
pub trait OkError {
    type Ok;
    type Error;
}
Expand description

Get Ok type and Err type of a Result.

Required Associated Types§

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, E> OkError for Result<T, E>

Source§

type Ok = T

Source§

type Error = E

Implementors§