pub fn new(s: String) -> Result<EnvVar, ()> {
        if !EnvVar::validate(&s) {
            Err(())
        } else {
            Ok(EnvVar(s))
        }
    }
/// Create a new EnvVar, returning an error if the String isn't a valid env
/// var.
Create a new EnvVar, returning an error if the String isn't a valid env
var.
Create a new EnvVar returning an error if the String isn ' t a valid env var .
pub fn new(s: String) -> Result<EnvVar, ()> {
        if !EnvVar::validate(&s) {
            Err(())
        } else {
            Ok(EnvVar(s))
        }
    }
pub fn new ( s : String ) -> Result < EnvVar , ( ) > { if ! EnvVar :: validate ( & s ) { Err ( ( ) ) } else { Ok ( EnvVar ( s ) ) } }
Create a new EnvVar, returning an error if the String isn't a valid env
var.
Create a new EnvVar returning an error if the String isn ' t a valid env var .
s
String
s
String