Expand description
§Read environment variables by lower, upper case or case-insensitive keys
This crate provides an interface similar to std::env but whose keys are
converted to lower or UPPER case, or presented in a way that can be compared
regardless of case, either ASCII or Unicode (with feature unicode enabled,
using unicase).
Only variants of env::var and env::vars are provided, since OsStrs
are not necessarily human-readable character strings.
Structs§
- Lower
Vars - Iterator of environment variables whose keys are lowercased.
- Uncased
Partial Eq - Helper for uncased comparison.
- Uncased
Vars - Iterator of environment variables whose keys can be compared regardless of case.
- Upper
Vars - Iterator of environment variables whose keys are UPPERCASED.
Functions§
- lower_
var - Get value by a key like
env::var, but accept a lowercased key ofAsRef<str>rather thanAsRef<OsStr>. - lower_
vars - Get an iterator of environment variables like
env::vars, but with lowercased keys. - uncased_
var - Get value by a key like
env::var, but accept a key of any case ofAsRef<str>rather thanAsRef<OsStr>. - uncased_
vars - Get an
UncasedVarswhose keys can be compared regardless of case. - upper_
var - Get value by a key like
env::var, but accept an UPPERCASED key ofAsRef<str>rather thanAsRef<OsStr>. - upper_
vars - Get an iterator of environment variables like
env::vars, but with uppercased keys.