Type Alias ExprToSpannedStringResult

Source
pub(crate) type ExprToSpannedStringResult<'a> = Result<ExprToSpannedString, Result<(Diag<'a>, bool), ErrorGuaranteed>>;
Expand description

Ok represents successfully retrieving the string literal at the correct position, e.g., println("abc").

Aliased Type§

pub(crate) enum ExprToSpannedStringResult<'a> {
    Ok(ExprToSpannedString),
    Err(Result<(Diag<'a>, bool), ErrorGuaranteed>),
}

Variants§

§

Ok(ExprToSpannedString)

Contains the success value

§

Err(Result<(Diag<'a>, bool), ErrorGuaranteed>)

Contains the error value

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.