1 2 3 4 5 6 7 8 9 10 11
pub(crate) trait With: Sized { fn with<F>(mut self, mut f: F) -> Self where F: FnMut(&mut Self), { f(&mut self); self } } impl<T> With for T {}