Trait itconfig::ToEnvString[][src]

pub trait ToEnvString {
    fn to_env_string(&self) -> EnvString;
}
Expand description

A trait for converting value to EnvString.

This trait automatically implemented for any type which implements the Display trait. As such, ToEnvString shouldn’t be implemented directly: Display should be implemented instead, and you get the ToEnvString implementation for free.

Required methods

Converts the giving value to a EnvString.

Examples

basic usage

let i = 5;
let five = EnvString::from("5");
assert_eq!(five, i.to_env_string());

Implementors