Module span

Source

Structs§

SourceLocation
A human-readable representation for a span, tailored for text source.
Span
A source code span, used for error reporting.
WithSpan
Wrapper class for Error, augmenting it with a list of SpanContexts.

Traits§

AddSpan 🔒
Convenience trait for Error to be able to apply spans to anything.
MapErrWithSpan 🔒
Convenience trait for Result, adding a MapErrWithSpan::map_err_inner mapping to WithSpan::and_then.
SpanProvider 🔒
Trait abstracting over getting a span from an Arena or a UniqueArena.

Type Aliases§

SpanContext
A source code span together with “context”, a user-readable description of what part of the error it refers to.