pub struct ArrayOfValues<T>where
T: ConfigValueType,{ /* private fields */ }Expand description
Value converter for arrays of other config values
Trait Implementations§
Source§impl<T> ConfigValueType for ArrayOfValues<T>where
T: ConfigValueType,
impl<T> ConfigValueType for ArrayOfValues<T>where
T: ConfigValueType,
Source§fn from_conf(
conf: &ConfigValue,
) -> Result<<ArrayOfValues<T> as ConfigValueType>::Value, ConfigError>
fn from_conf( conf: &ConfigValue, ) -> Result<<ArrayOfValues<T> as ConfigValueType>::Value, ConfigError>
Extract the value from a config instance.
Source§fn into_config_value(
value: <ArrayOfValues<T> as ConfigValueType>::Value,
) -> ConfigValue
fn into_config_value( value: <ArrayOfValues<T> 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.
Source§impl<T> Default for ArrayOfValues<T>where
T: ConfigValueType,
impl<T> Default for ArrayOfValues<T>where
T: ConfigValueType,
Source§fn default() -> ArrayOfValues<T>
fn default() -> ArrayOfValues<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for ArrayOfValues<T>
impl<T> RefUnwindSafe for ArrayOfValues<T>where
T: RefUnwindSafe,
impl<T> Send for ArrayOfValues<T>where
T: Send,
impl<T> Sync for ArrayOfValues<T>where
T: Sync,
impl<T> Unpin for ArrayOfValues<T>where
T: Unpin,
impl<T> UnsafeUnpin for ArrayOfValues<T>
impl<T> UnwindSafe for ArrayOfValues<T>where
T: UnwindSafe,
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