Skip to main content

debug_location

Macro debug_location 

Source
macro_rules! debug_location {
    () => { ... };
    ($func_name:expr) => { ... };
}
Expand description

Macro to capture the current source location for debug info.

ยงExample

use fastapi_core::{debug_location, error::DebugInfo};

fn my_handler() -> DebugInfo {
    debug_location!()
}