ClassifyResult

Trait ClassifyResult 

Source
pub trait ClassifyResult: Sized {
    type Value;
    type Error;

    // Required methods
    fn or_fatal(self) -> Result<Self::Value, ExecutionError>
       where Self::Error: Into<Error>;
    fn or_error(self, code: ErrorNumber) -> Result<Self::Value, ExecutionError>
       where Self::Error: Display;

    // Provided method
    fn or_illegal_argument(self) -> Result<Self::Value, ExecutionError>
       where Self::Error: Display { ... }
}

Required Associated Types§

Required Methods§

Source

fn or_fatal(self) -> Result<Self::Value, ExecutionError>
where Self::Error: Into<Error>,

Source

fn or_error(self, code: ErrorNumber) -> Result<Self::Value, ExecutionError>
where Self::Error: Display,

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

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

Implementors§