Skip to main content

Errors

Type Alias Errors 

Source
pub type Errors<T> = Result<T, Reported>;
Expand description

Signals that this may complete or report a diagnostic. In practice we use this to mean an error.

Aliased Type§

pub enum Errors<T> {
    Ok(T),
    Err(Reported),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Reported)

Contains the error value

Trait Implementations§

Source§

impl<'db, T> Err<'db> for Errors<T>

Source§

fn err(_db: &'db dyn Db, reported: Reported) -> Self