pub(crate) fn new(context: *const Arc<RuntimeContext>, unit: *const Arc<Unit>) -> Guard {
        let old = ENV.with(|e| e.replace(Env { context, unit }));

        Guard { old }
    }
/// Construct a new environment guard with the given context and unit.
///
/// # Safety
///
/// The returned guard must be dropped before the pointed to elements are.
Construct a new environment guard with the given context and unit.
Construct a new environment guard with the given context and unit .
pub(crate) fn new(context: *const Arc<RuntimeContext>, unit: *const Arc<Unit>) -> Guard {
        let old = ENV.with(|e| e.replace(Env { context, unit }));
        Guard { old }
    }
pub ( crate ) fn new ( context : * const Arc < RuntimeContext > , unit : * const Arc < Unit > ) -> Guard { let old = ENV . with ( | e | e . replace ( Env { context , unit } ) ) ; Guard { old } }
Construct a new environment guard with the given context and unit.
Construct a new environment guard with the given context and unit .
context
*const Arc<RuntimeContext>
unit
*const Arc<Unit>
context
*const Arc<RuntimeContext>
unit
*const Arc<Unit>
safety
The returned guard must be dropped before the pointed to elements are.
The returned guard must be dropped before the pointed to elements are .