zng_wgt_settings

Trait SettingBuilderEditorExt

Source
pub trait SettingBuilderEditorExt {
    // Required method
    fn editor_fn(&mut self, editor: WidgetFn<Setting>) -> &mut Self;
}
Expand description

Extends SettingBuilder to set custom editor metadata.

Required Methods§

Source

fn editor_fn(&mut self, editor: WidgetFn<Setting>) -> &mut Self

Custom editor for the setting.

If an editor is set the VAR_EDITOR service is used to instantiate the editor.

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.

Implementations on Foreign Types§

Source§

impl SettingBuilderEditorExt for SettingBuilder<'_>

Source§

fn editor_fn(&mut self, editor: WidgetFn<Setting>) -> &mut Self

Implementors§