pub trait CfgEvaluator { // Required method fn eval(&self, name: &str, value: Option<&str>) -> CfgResult; }
Logic to decide whether a conditional compilation attribute is enabled or disabled.
A name-only attribute such as cfg(ident) is passed with a value of None, while cfg(key = "value") is passed with the “value” in value.
cfg(ident)
value
cfg(key = "value")