pub trait ConfigValue {
Show 86 methods
// Required methods
fn ctor(&self) -> Option<&str>;
fn type(&self) -> Option<&TypeId>;
fn name(&self) -> Option<&str>;
fn force(&self) -> Option<bool>;
fn index(&self) -> Option<&Index>;
fn alias(&self) -> Option<&Vec<String>>;
fn hint(&self) -> Option<&str>;
fn help(&self) -> Option<&str>;
fn action(&self) -> Option<&Action>;
fn storer(&self) -> Option<&ValStorer>;
fn style(&self) -> Option<&Vec<Style>>;
fn initializer(&self) -> Option<&ValInitializer>;
fn ctor_mut(&mut self) -> Option<&mut String>;
fn type_mut(&mut self) -> Option<&mut TypeId>;
fn name_mut(&mut self) -> Option<&mut String>;
fn force_mut(&mut self) -> Option<&mut bool>;
fn index_mut(&mut self) -> Option<&mut Index>;
fn alias_mut(&mut self) -> Option<&mut Vec<String>>;
fn hint_mut(&mut self) -> Option<&mut String>;
fn help_mut(&mut self) -> Option<&mut String>;
fn action_mut(&mut self) -> Option<&mut Action>;
fn storer_mut(&mut self) -> Option<&mut ValStorer>;
fn style_mut(&mut self) -> Option<&mut Vec<Style>>;
fn initializer_mut(&mut self) -> Option<&mut ValInitializer>;
fn ignore_name(&self) -> bool;
fn ignore_alias(&self) -> bool;
fn ignore_index(&self) -> bool;
fn has_ctor(&self) -> bool;
fn has_type(&self) -> bool;
fn has_name(&self) -> bool;
fn has_force(&self) -> bool;
fn has_index(&self) -> bool;
fn has_hint(&self) -> bool;
fn has_help(&self) -> bool;
fn has_alias(&self) -> bool;
fn has_action(&self) -> bool;
fn has_storer(&self) -> bool;
fn has_style(&self) -> bool;
fn has_initializer(&self) -> bool;
fn set_ctor(&mut self, ctor: impl Into<String>) -> &mut Self;
fn set_type<T: 'static>(&mut self) -> &mut Self;
fn set_type_id(&mut self, type_id: TypeId) -> &mut Self;
fn set_name(&mut self, name: impl Into<String>) -> &mut Self;
fn set_force(&mut self, force: bool) -> &mut Self;
fn set_index(&mut self, index: Index) -> &mut Self;
fn set_alias(&mut self, alias: Vec<impl Into<String>>) -> &mut Self;
fn clr_alias(&mut self) -> &mut Self;
fn add_alias(&mut self, alias: impl Into<String>) -> &mut Self;
fn rem_alias(&mut self, alias: impl AsRef<str>) -> &mut Self;
fn set_hint(&mut self, hint: impl Into<String>) -> &mut Self;
fn set_help(&mut self, help: impl Into<String>) -> &mut Self;
fn set_action(&mut self, action: Action) -> &mut Self;
fn set_storer(&mut self, storer: ValStorer) -> &mut Self;
fn set_style(&mut self, styles: Vec<Style>) -> &mut Self;
fn set_initializer(&mut self, initializer: ValInitializer) -> &mut Self;
fn set_ignore_name(&mut self, ignore_name: bool) -> &mut Self;
fn set_ignore_alias(&mut self, ignore_alias: bool) -> &mut Self;
fn set_ignore_index(&mut self, ignore_index: bool) -> &mut Self;
fn take_ctor(&mut self) -> Option<String>;
fn take_type(&mut self) -> Option<TypeId>;
fn take_name(&mut self) -> Option<String>;
fn take_force(&mut self) -> Option<bool>;
fn take_index(&mut self) -> Option<Index>;
fn take_alias(&mut self) -> Option<Vec<String>>;
fn take_hint(&mut self) -> Option<String>;
fn take_help(&mut self) -> Option<String>;
fn take_action(&mut self) -> Option<Action>;
fn take_storer(&mut self) -> Option<ValStorer>;
fn take_style(&mut self) -> Option<Vec<Style>>;
fn take_initializer(&mut self) -> Option<ValInitializer>;
fn infer_builtin_ty(&mut self);
fn with_index(self, index: Index) -> Self;
fn with_force(self, force: bool) -> Self;
fn with_ctor(self, ctor: impl Into<String>) -> Self;
fn with_name(self, name: impl Into<String>) -> Self;
fn with_type<T: 'static>(self) -> Self;
fn with_hint(self, hint: impl Into<String>) -> Self;
fn with_help(self, help: impl Into<String>) -> Self;
fn with_alias(self, alias: Vec<impl Into<String>>) -> Self;
fn with_style(self, styles: Vec<Style>) -> Self;
fn with_action(self, action: Action) -> Self;
fn with_storer(self, storer: ValStorer) -> Self;
fn with_ignore_alias(self, ignore_alias: bool) -> Self;
fn with_ignore_index(self, ignore_index: bool) -> Self;
fn with_ignore_name(self, ignore_name: bool) -> Self;
fn with_initializer(self, initializer: ValInitializer) -> Self;
}Required Methods§
Sourcefn initializer(&self) -> Option<&ValInitializer>
fn initializer(&self) -> Option<&ValInitializer>
Value initializer for option.
Sourcefn action_mut(&mut self) -> Option<&mut Action>
fn action_mut(&mut self) -> Option<&mut Action>
Value action of option.
Sourcefn storer_mut(&mut self) -> Option<&mut ValStorer>
fn storer_mut(&mut self) -> Option<&mut ValStorer>
Value validator for option.
Sourcefn initializer_mut(&mut self) -> Option<&mut ValInitializer>
fn initializer_mut(&mut self) -> Option<&mut ValInitializer>
Value initializer for option.
fn ignore_name(&self) -> bool
fn ignore_alias(&self) -> bool
fn ignore_index(&self) -> bool
fn has_ctor(&self) -> bool
fn has_type(&self) -> bool
fn has_name(&self) -> bool
fn has_force(&self) -> bool
fn has_index(&self) -> bool
fn has_hint(&self) -> bool
fn has_help(&self) -> bool
fn has_alias(&self) -> bool
fn has_action(&self) -> bool
fn has_storer(&self) -> bool
fn has_style(&self) -> bool
fn has_initializer(&self) -> bool
fn set_ctor(&mut self, ctor: impl Into<String>) -> &mut Self
fn set_type<T: 'static>(&mut self) -> &mut Self
fn set_type_id(&mut self, type_id: TypeId) -> &mut Self
fn set_name(&mut self, name: impl Into<String>) -> &mut Self
fn set_force(&mut self, force: bool) -> &mut Self
fn set_index(&mut self, index: Index) -> &mut Self
fn set_alias(&mut self, alias: Vec<impl Into<String>>) -> &mut Self
fn clr_alias(&mut self) -> &mut Self
fn add_alias(&mut self, alias: impl Into<String>) -> &mut Self
fn rem_alias(&mut self, alias: impl AsRef<str>) -> &mut Self
fn set_hint(&mut self, hint: impl Into<String>) -> &mut Self
fn set_help(&mut self, help: impl Into<String>) -> &mut Self
fn set_action(&mut self, action: Action) -> &mut Self
fn set_storer(&mut self, storer: ValStorer) -> &mut Self
fn set_style(&mut self, styles: Vec<Style>) -> &mut Self
fn set_initializer(&mut self, initializer: ValInitializer) -> &mut Self
fn set_ignore_name(&mut self, ignore_name: bool) -> &mut Self
fn set_ignore_alias(&mut self, ignore_alias: bool) -> &mut Self
fn set_ignore_index(&mut self, ignore_index: bool) -> &mut Self
fn take_ctor(&mut self) -> Option<String>
fn take_type(&mut self) -> Option<TypeId>
fn take_name(&mut self) -> Option<String>
fn take_force(&mut self) -> Option<bool>
fn take_index(&mut self) -> Option<Index>
fn take_alias(&mut self) -> Option<Vec<String>>
fn take_hint(&mut self) -> Option<String>
fn take_help(&mut self) -> Option<String>
fn take_action(&mut self) -> Option<Action>
fn take_storer(&mut self) -> Option<ValStorer>
fn take_style(&mut self) -> Option<Vec<Style>>
fn take_initializer(&mut self) -> Option<ValInitializer>
fn infer_builtin_ty(&mut self)
fn with_index(self, index: Index) -> Self
fn with_force(self, force: bool) -> Self
fn with_ctor(self, ctor: impl Into<String>) -> Self
fn with_name(self, name: impl Into<String>) -> Self
fn with_type<T: 'static>(self) -> Self
fn with_hint(self, hint: impl Into<String>) -> Self
fn with_help(self, help: impl Into<String>) -> Self
fn with_alias(self, alias: Vec<impl Into<String>>) -> Self
fn with_style(self, styles: Vec<Style>) -> Self
fn with_action(self, action: Action) -> Self
fn with_storer(self, storer: ValStorer) -> Self
fn with_ignore_alias(self, ignore_alias: bool) -> Self
fn with_ignore_index(self, ignore_index: bool) -> Self
fn with_ignore_name(self, ignore_name: bool) -> Self
fn with_initializer(self, initializer: ValInitializer) -> Self
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.