Expand description
Structs§
- Buffer
- a buffer containing some source code
- LineCol
- a zero-indexed line and column
- Loc
- a location in a
Buffer
- Locd
- a value annotated with a
Loc
ation - Span
- a span of start and end
Loc
ations in aBuffer
- Spanned
- a value annotated with a
Span
- Spanner
- handles handing out
Span
s that point intoBuffer
s - SrcSpan
- a span of start and end Locations in a
Buffer
, including a reference to theBuffer
itself - SrcSpanned
- a value annotated with a
SrcSpan
Traits§
- Buffer
Source - source code for a buffer
- Spanner
Ext - helper extension trait to quickly wrap values
Functions§
- calc_
line_ beginnings - calculate byte offsets for the start of each line
- find_
line - find the line number for a given offset, passing the line beginnings and byte offset
- find_
line_ col - find the line and column for a given offset, passing the line beginnings and byte offset