pub type BuildEnv = MakePkgOption;
Expand description
An option string used in a build environment
The option string is identified by its name and whether it is on (not prefixed with “!”) or off
(prefixed with “!”). This type is an alias for MakePkgOption
.
§Examples
use alpm_types::BuildEnv;
let option = BuildEnv::new("foo").unwrap();
assert_eq!(option.on(), true);
assert_eq!(option.name(), "foo");
let not_option = BuildEnv::new("!foo").unwrap();
assert_eq!(not_option.on(), false);
assert_eq!(not_option.name(), "foo");
Aliased Type§
struct BuildEnv {
name: String,
on: bool,
}
Fields§
§name: String
§on: bool