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

The type returned in the event of a conversion error.

Required methods

Performs the conversion.

Implementations on Foreign Types

Implementors