use crate::settings::TableOption; /// This is a struct wrapper for a lambda which changes config. #[derive(Debug)] pub struct FormatConfig(pub(crate) F); impl TableOption for FormatConfig where F: FnMut(&mut C), { fn change(mut self, _: &mut R, cfg: &mut C, _: &mut D) { (self.0)(cfg); } }