cxx_gen

Trait CfgEvaluator

Source
pub trait CfgEvaluator {
    // Required method
    fn eval(&self, name: &str, value: Option<&str>) -> CfgResult;
}
Expand description

Logic to decide whether a conditional compilation attribute is enabled or disabled.

Required Methods§

Source

fn eval(&self, name: &str, value: Option<&str>) -> CfgResult

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.

Implementors§