Function rust_utils::default_with

source ·
pub fn default_with<T: Default>(f: impl FnOnce(&mut T)) -> T