pub fn at<E>(err: E) -> At<E>Expand description
Wrap any value in At<E> and capture the caller’s location.
This function works with any type, not just Error types.
For types implementing Error, you can also use .start_at().
For crate-aware tracing with GitHub links, use at!() instead.
§Example
use whereat::{at, At};
#[derive(Debug)]
struct SimpleError { code: u32 }
fn fallible() -> Result<(), At<SimpleError>> {
Err(at(SimpleError { code: 42 }))
}