Skip to main content

location

Macro location 

Source
macro_rules! location {
    () => { ... };
}
Expand description

Returns a string with the current source code location

Returns something like "src/main.rs:10:5"

This macro formats the current file name, line number and column number into a single string in the format file:line:column

ยงExamples

use grp_core::location;
 
let loc = location!();