pub fn with<R, T>(receiver: &R, closure: impl FnOnce(&R) -> T) -> T
Calls the specified closure with the given receiver and returns its result.
closure
receiver