pub struct StringOption<'a> { /* private fields */ }
Expand description
A config option with a string value.
Implementations§
Trait Implementations§
Source§impl<'a> AsRef<dyn BaseConfigOption + 'a> for StringOption<'a>
impl<'a> AsRef<dyn BaseConfigOption + 'a> for StringOption<'a>
Source§fn as_ref(&self) -> &(dyn BaseConfigOption + 'a)
fn as_ref(&self) -> &(dyn BaseConfigOption + 'a)
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'a> BaseConfigOption for StringOption<'a>
impl<'a> BaseConfigOption for StringOption<'a>
Source§fn description(&self) -> Cow<'_, str>
fn description(&self) -> Cow<'_, str>
Get the description of the option.
Source§fn section_name(&self) -> Cow<'_, str>
fn section_name(&self) -> Cow<'_, str>
Get the section name of the section the option belongs to.
Source§fn config_name(&self) -> Cow<'_, str>
fn config_name(&self) -> Cow<'_, str>
Get the config name the option belongs to.
Source§fn option_type(&self) -> OptionType
fn option_type(&self) -> OptionType
Get the type of the config option
Source§fn reset(&self, run_callback: bool) -> OptionChanged
fn reset(&self, run_callback: bool) -> OptionChanged
Resets the option to its default value.
impl<'a> ConfigOptions for StringOption<'_>
Auto Trait Implementations§
impl<'a> Freeze for StringOption<'a>
impl<'a> RefUnwindSafe for StringOption<'a>
impl<'a> !Send for StringOption<'a>
impl<'a> !Sync for StringOption<'a>
impl<'a> Unpin for StringOption<'a>
impl<'a> UnwindSafe for StringOption<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more