Skip to main content

with_observed_codegen

Function with_observed_codegen 

Source
pub fn with_observed_codegen<R>(f: impl FnOnce() -> R) -> R
Expand description

Run f with the OBSERVED codegen profile enabled, restoring the previous mode afterwards (panic-safe). Returns f’s result.