pub struct BooleanValue;Expand description
Value converter for type bool
Trait Implementations§
Source§impl ConfigValueType for BooleanValue
impl ConfigValueType for BooleanValue
Source§fn from_conf(
conf: &ConfigValue,
) -> Result<<BooleanValue as ConfigValueType>::Value, ConfigError>
fn from_conf( conf: &ConfigValue, ) -> Result<<BooleanValue as ConfigValueType>::Value, ConfigError>
Extract the value from a config instance.
Source§fn into_config_value(
value: <BooleanValue as ConfigValueType>::Value,
) -> ConfigValue
fn into_config_value( value: <BooleanValue as ConfigValueType>::Value, ) -> ConfigValue
Convert a runtime value into a config value.
Source§fn config_string(value: Self::Value) -> String
fn config_string(value: Self::Value) -> String
Produce a TOML fragment for the value.
Auto Trait Implementations§
impl Freeze for BooleanValue
impl RefUnwindSafe for BooleanValue
impl Send for BooleanValue
impl Sync for BooleanValue
impl Unpin for BooleanValue
impl UnsafeUnpin for BooleanValue
impl UnwindSafe for BooleanValue
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