Function span_of

Source
pub fn span_of<S, F, R>(name: S, f: F) -> R
where S: Into<StrCow>, F: FnOnce() -> R,
Expand description

Starts and ends a Span that lasts for the duration of the function f.