Type Alias CompileResult

pub type CompileResult<T> = Result<T, Vec<CompilerError>>;
Expand description

A type alias for a result that can either be a value of type T or a list of compiler errors

Aliased Type§

enum CompileResult<T> {
    Ok(T),
    Err(Vec<CompilerError>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Vec<CompilerError>)

Contains the error value