pub enum Result<T, E> {
    /// Contains the success value.
    Ok: T,
    /// Contains the error value.
    Err: E,
}
Expand description

Result is a type that represents either success (Ok) or failure (Err).

Variants

Ok: T

Contains the success value.

Err: E

Contains the error value.