Skip to main content

with_origin

Function with_origin 

Source
pub fn with_origin<R>(origin: DefinitionOrigin, f: impl FnOnce() -> R) -> R
Expand description

Run f with origin as the current definition origin.