pub fn registration_scope<F, T>(f: F) -> Twhere
F: for<'scope> FnOnce(&'scope RegistrationScope<'scope>) -> T,Expand description
Execute a closure with a temporary RegistrationScope.
Used to ensure any &mut Registration borrows that are obtained are tied to the lifetime of
the closure and cannot accidentally escape.