/// Generic trait to enable chainable API pub trait With: Sized { /// Calls the given closure on `self`. fn with(mut self, f: F) -> Self { f(&mut self); self } } impl With for T {}