pub trait AnySettingField {
// Required methods
fn as_any(&self) -> &dyn Any;
fn type_name(&self) -> &'static str;
fn type_id(&self) -> TypeId;
fn field_type(&self) -> &SettingFieldType;
fn style(&self) -> &StyleRefinement;
fn is_resettable(&self, cx: &App) -> bool;
fn reset(&self, window: &mut Window, cx: &mut App);
}Expand description
A trait for setting fields that allows for dynamic typing.