Enum rustc_save_analysis::env::VarError 1.0.0[−][src]
pub enum VarError {
NotPresent,
NotUnicode(OsString),
}Expand description
The error type for operations interacting with environment variables.
Possibly returned from env::var().
Variants
NotPresent
The specified environment variable was not present in the current process’s environment.
NotUnicode(OsString)
Tuple Fields
0: OsStringThe specified environment variable was found, but it did not contain valid unicode data. The found data is returned as a payload of this variant.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VarError
impl UnwindSafe for VarError
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
NotPresent: 0 bytesNotUnicode: 24 bytes