pub trait Validator: DynClone { // Required methods fn is_numeric(&self) -> bool; fn is_valid(&self, editing: bool, text: &str) -> bool; }