Function with

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