pub struct FromStrHolder<V>(pub V);
Expand description
Wrapper for all FromStr type.
Tuple Fields§
§0: V
Trait Implementations§
Source§impl<V: FromStr<Err = E> + 'static, E: Error + 'static> FromStringValue for FromStrHolder<V>
impl<V: FromStr<Err = E> + 'static, E: Error + 'static> FromStringValue for FromStrHolder<V>
Source§fn from_str_value(
_: &mut ConfigContext<'_>,
value: &str,
) -> Result<Self, ConfigError>
fn from_str_value( _: &mut ConfigContext<'_>, value: &str, ) -> Result<Self, ConfigError>
Convert from string value.
Auto Trait Implementations§
impl<V> Freeze for FromStrHolder<V>where
V: Freeze,
impl<V> RefUnwindSafe for FromStrHolder<V>where
V: RefUnwindSafe,
impl<V> Send for FromStrHolder<V>where
V: Send,
impl<V> Sync for FromStrHolder<V>where
V: Sync,
impl<V> Unpin for FromStrHolder<V>where
V: Unpin,
impl<V> UnwindSafe for FromStrHolder<V>where
V: 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
Source§impl<V> FromConfig for Vwhere
V: FromValue,
impl<V> FromConfig for Vwhere
V: FromValue,
Source§fn from_config(
context: &mut ConfigContext<'_>,
value: Option<ConfigValue<'_>>,
) -> Result<V, ConfigError>
fn from_config( context: &mut ConfigContext<'_>, value: Option<ConfigValue<'_>>, ) -> Result<V, ConfigError>
Generate config from
ConfigValue
under context.