Enum sophia_api::parser::Location
source · [−]Expand description
A location in a parsed stream, which can be unknown, a specific point, or a span.
Variants
Unknown
Pos(Position)
Span(Position, Position)
Implementations
Build a location which is a byte-offset (starting at 0) in the stream.
Build a location which is a line-column position (both starting at 1) in the stream.
Build a location which is a span between two byte-offsets (starting at 0) in the stream.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Location
impl UnwindSafe for Location
Blanket Implementations
Mutably borrows from an owned value. Read more