Functionsยง
- find_
module_ path - Reads the file and extracts the module path at the given line.
- find_
module_ path_ in_ file - Reads the file and extracts the module path at the given line, using a known module root.
- get_
pseudo_ module_ path - Gets the full pseudo-absolute module path of the current macro invocation.
- get_
source_ info - Extracts the file path and line number where the macro was invoked.
- module_
path_ from_ file - Converts a file path into a pseudo-Rust module path.
- module_
path_ from_ file_ with_ root - Converts a file path into a pseudo-Rust module path using a known module root.
- module_
path_ to_ file - Maps a module path (e.g.
crate::foo::bar) to a source file. - module_
root_ from_ file - Derives a module root (usually
<crate>/src) from a file path.