cravan371/xpath-evaluator/diagnostic does not have a README file

    XPathError

    pub(all) suberror XPathError {
    Lex(span~ : SourceSpan, message~ : String)
    Parse(span~ : SourceSpan, message~ : String)
    Static(span~ : SourceSpan?, message~ : String)
    Model(message~ : String)
    Xml(message~ : String)
    Evaluate(span~ : SourceSpan?, message~ : String)
    LimitExceeded(phase~ : XPathPhase, limit~ : String)
    } derive(Eq,
    Debug
    )

    Public checked error shared by the compiler, document model and evaluator.

    SourceSpan

    pub(all) struct SourceSpan {
    start_offset : Int
    end_offset : Int
    } derive(Eq,
    Debug
    )

    Half-open UTF-16 source offset range [start_offset, end_offset).

    SourceSpan::new

    fn SourceSpan::new(start_offset : Int, end_offset : Int) -> SourceSpan

    Construct a source span. Validation belongs to the lexer/parser that owns the source buffer.

    XPathPhase

    pub(all) enum XPathPhase {
    Lex
    Parse
    Static
    Model
    Xml
    Evaluate
    } derive(Eq,
    Debug
    )

    Processing phase that produced an XPath diagnostic.

    Source Files