Type Alias Result

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

A specialized Result type for lexers and parsers.

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

Source§

impl<T> From<Error> for Result<T>

Source§

fn from(error: Error) -> Self

Creates a result from the given error, which the value is always Err.