Skip to main content

ConfigValue

Trait ConfigValue 

Source
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§

Source

fn ctor(&self) -> Option<&str>

The creator name of option.

Source

fn type(&self) -> Option<&TypeId>

The TypeId of option.

Source

fn name(&self) -> Option<&str>

The name of option.

Source

fn force(&self) -> Option<bool>

If the option is force required.

Source

fn index(&self) -> Option<&Index>

The index configuration of option.

Source

fn alias(&self) -> Option<&Vec<String>>

The alias name and prefix of option.

Source

fn hint(&self) -> Option<&str>

The hint message used in usage of option.

Source

fn help(&self) -> Option<&str>

The help message of option.

Source

fn action(&self) -> Option<&Action>

Value action of option.

Source

fn storer(&self) -> Option<&ValStorer>

Value validator for option.

Source

fn style(&self) -> Option<&Vec<Style>>

The style support by current option.

Source

fn initializer(&self) -> Option<&ValInitializer>

Value initializer for option.

Source

fn ctor_mut(&mut self) -> Option<&mut String>

The creator name of option.

Source

fn type_mut(&mut self) -> Option<&mut TypeId>

The TypeId of option.

Source

fn name_mut(&mut self) -> Option<&mut String>

The name of option.

Source

fn force_mut(&mut self) -> Option<&mut bool>

If the option is force required.

Source

fn index_mut(&mut self) -> Option<&mut Index>

The index configuration of option.

Source

fn alias_mut(&mut self) -> Option<&mut Vec<String>>

The alias name and prefix of option.

Source

fn hint_mut(&mut self) -> Option<&mut String>

The hint message used in usage of option.

Source

fn help_mut(&mut self) -> Option<&mut String>

The help message of option.

Source

fn action_mut(&mut self) -> Option<&mut Action>

Value action of option.

Source

fn storer_mut(&mut self) -> Option<&mut ValStorer>

Value validator for option.

Source

fn style_mut(&mut self) -> Option<&mut Vec<Style>>

The style support by current option.

Source

fn initializer_mut(&mut self) -> Option<&mut ValInitializer>

Value initializer for option.

Source

fn ignore_name(&self) -> bool

Source

fn ignore_alias(&self) -> bool

Source

fn ignore_index(&self) -> bool

Source

fn has_ctor(&self) -> bool

Source

fn has_type(&self) -> bool

Source

fn has_name(&self) -> bool

Source

fn has_force(&self) -> bool

Source

fn has_index(&self) -> bool

Source

fn has_hint(&self) -> bool

Source

fn has_help(&self) -> bool

Source

fn has_alias(&self) -> bool

Source

fn has_action(&self) -> bool

Source

fn has_storer(&self) -> bool

Source

fn has_style(&self) -> bool

Source

fn has_initializer(&self) -> bool

Source

fn set_ctor(&mut self, ctor: impl Into<String>) -> &mut Self

Source

fn set_type<T: 'static>(&mut self) -> &mut Self

Source

fn set_type_id(&mut self, type_id: TypeId) -> &mut Self

Source

fn set_name(&mut self, name: impl Into<String>) -> &mut Self

Source

fn set_force(&mut self, force: bool) -> &mut Self

Source

fn set_index(&mut self, index: Index) -> &mut Self

Source

fn set_alias(&mut self, alias: Vec<impl Into<String>>) -> &mut Self

Source

fn clr_alias(&mut self) -> &mut Self

Source

fn add_alias(&mut self, alias: impl Into<String>) -> &mut Self

Source

fn rem_alias(&mut self, alias: impl AsRef<str>) -> &mut Self

Source

fn set_hint(&mut self, hint: impl Into<String>) -> &mut Self

Source

fn set_help(&mut self, help: impl Into<String>) -> &mut Self

Source

fn set_action(&mut self, action: Action) -> &mut Self

Source

fn set_storer(&mut self, storer: ValStorer) -> &mut Self

Source

fn set_style(&mut self, styles: Vec<Style>) -> &mut Self

Source

fn set_initializer(&mut self, initializer: ValInitializer) -> &mut Self

Source

fn set_ignore_name(&mut self, ignore_name: bool) -> &mut Self

Source

fn set_ignore_alias(&mut self, ignore_alias: bool) -> &mut Self

Source

fn set_ignore_index(&mut self, ignore_index: bool) -> &mut Self

Source

fn take_ctor(&mut self) -> Option<String>

Source

fn take_type(&mut self) -> Option<TypeId>

Source

fn take_name(&mut self) -> Option<String>

Source

fn take_force(&mut self) -> Option<bool>

Source

fn take_index(&mut self) -> Option<Index>

Source

fn take_alias(&mut self) -> Option<Vec<String>>

Source

fn take_hint(&mut self) -> Option<String>

Source

fn take_help(&mut self) -> Option<String>

Source

fn take_action(&mut self) -> Option<Action>

Source

fn take_storer(&mut self) -> Option<ValStorer>

Source

fn take_style(&mut self) -> Option<Vec<Style>>

Source

fn take_initializer(&mut self) -> Option<ValInitializer>

Source

fn infer_builtin_ty(&mut self)

Source

fn with_index(self, index: Index) -> Self

Source

fn with_force(self, force: bool) -> Self

Source

fn with_ctor(self, ctor: impl Into<String>) -> Self

Source

fn with_name(self, name: impl Into<String>) -> Self

Source

fn with_type<T: 'static>(self) -> Self

Source

fn with_hint(self, hint: impl Into<String>) -> Self

Source

fn with_help(self, help: impl Into<String>) -> Self

Source

fn with_alias(self, alias: Vec<impl Into<String>>) -> Self

Source

fn with_style(self, styles: Vec<Style>) -> Self

Source

fn with_action(self, action: Action) -> Self

Source

fn with_storer(self, storer: ValStorer) -> Self

Source

fn with_ignore_alias(self, ignore_alias: bool) -> Self

Source

fn with_ignore_index(self, ignore_index: bool) -> Self

Source

fn with_ignore_name(self, ignore_name: bool) -> Self

Source

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.

Implementors§