Skip to main content
Module spans
charon_
lib
0.1.240
Module spans
Module Items
Structs
Enums
Functions
In charon_
lib::
ast::
meta
charon_lib
::
ast
::
meta
Module
spans
Copy item path
Source
Structs
§
File
FileId
Loc
Span
A snippet of source code within a file.
Span
Data
A snippet of source code within a file.
Enums
§
File
Name
A filename.
Functions
§
combine_
span
Combine some span information (useful when we need to compute the span-information of, say, a sequence).
combine_
span_
iter
Combine all the span information in a slice.
line_
to_
start_
byte
🔒
Given a line number within a source file, get the byte of the start of the line. Obviously not efficient to do many times, but this is used is diagnostic paths only. The line numer is expected to be 1-based.