Type Alias PklResult

Source
pub type PklResult<T> = Result<T, (String, Span)>;
Expand description

A result type for PKL parsing operations.

The PklResult type is a specialized Result type used throughout the PKL parsing code. It represents either a successful result (T) or a ParseError.

Aliased Type§

enum PklResult<T> {
    Ok(T),
    Err((String, Range<usize>)),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err((String, Range<usize>))

Contains the error value