Trait itconfig::FromEnvString [−][src]
pub trait FromEnvString: Sized { type Err; fn from_env_string(s: &EnvString) -> Result<Self, Self::Err>; }
Expand description
Simple and safe type conversions that may fail in a controlled way under some circumstances.
This trait automatically implemented for all standard primitives. If you
want to use your custom type in the library you need to implement
ToEnvString
and FromEnvString
manually.
Associated Types
Required methods
fn from_env_string(s: &EnvString) -> Result<Self, Self::Err>
fn from_env_string(s: &EnvString) -> Result<Self, Self::Err>
Performs the conversion.
Implementations on Foreign Types
type Err = ArrayEnvError