Skip to main content

CompilerResult

Type Alias CompilerResult 

Source
pub type CompilerResult = Result<Cursor<Vec<u8>>, ExecutorError>;
Available on crate feature std only.
Expand description

Raw query bytes captured from a successful Compiler, or an execution error.

The cursor is positioned at zero and is empty when stdout is not captured. Captured bytes, including whitespace and trailing newlines, are preserved. The pattern requires UTF-8 SPARQL, but this wrapper does not decode or validate it.

Aliased Type§

pub enum CompilerResult {
    Ok(Cursor<Vec<u8>>),
    Err(ExecutorError),
}

Variants§

§1.0.0

Ok(Cursor<Vec<u8>>)

Contains the success value

§1.0.0

Err(ExecutorError)

Contains the error value