zng::config::settings::editor

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.

Object Safety§

This trait is not object safe.

Implementors§