Function borrow_with

Source
pub fn borrow_with<F: FnOnce(&Box<dyn Write>) -> R, R>(f: F) -> R