pub trait YoleckAutoEdit:
Send
+ Sync
+ 'static {
// Required method
fn auto_edit(value: &mut Self, ui: &mut Ui);
// Provided methods
fn auto_edit_with_label_and_attrs(
value: &mut Self,
ui: &mut Ui,
label: &str,
attrs: &FieldAttrs,
) { ... }
fn auto_edit_field_impl(
value: &mut Self,
ui: &mut Ui,
label: &str,
attrs: &FieldAttrs,
) { ... }
}Required Methods§
Provided Methods§
Sourcefn auto_edit_with_label_and_attrs(
value: &mut Self,
ui: &mut Ui,
label: &str,
attrs: &FieldAttrs,
)
fn auto_edit_with_label_and_attrs( value: &mut Self, ui: &mut Ui, label: &str, attrs: &FieldAttrs, )
Auto-edit with field-level attributes (label, tooltip, range, etc.) Default implementation wraps auto_edit with label and common decorations
Sourcefn auto_edit_field_impl(
value: &mut Self,
ui: &mut Ui,
label: &str,
attrs: &FieldAttrs,
)
fn auto_edit_field_impl( value: &mut Self, ui: &mut Ui, label: &str, attrs: &FieldAttrs, )
Internal implementation for field rendering with label Types can override this to customize behavior based on attributes
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.