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
Location - Span
- a span of start and end
Locations in aBuffer - Spanned
- a value annotated with a
Span - Spanner
- handles handing out
Spans that point intoBuffers - SrcSpan
- a span of start and end Locations in a
Buffer, including a reference to theBufferitself - 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