Searched refs:CfgResult (Results 1 – 4 of 4) sorted by relevance
/third_party/rust/crates/cxx/gen/cmd/src/ |
D | cfg.rs | 1 use crate::gen::{CfgEvaluator, CfgResult}; 29 fn eval(&self, name: &str, value: Option<&str>) -> CfgResult { in eval() argument 33 CfgResult::from(set.contains(&CfgValue::Str(value.to_owned()))) in eval() 35 CfgResult::False in eval() 41 CfgResult::Undetermined { msg } in eval() 51 CfgResult::Undetermined { msg } in eval() 53 CfgResult::False in eval() 55 CfgResult::True in eval() 61 CfgResult::Undetermined { msg } in eval()
|
/third_party/rust/crates/cxx/gen/src/ |
D | cfg.rs | 1 use crate::gen::{CfgEvaluator, CfgResult}; 12 fn eval(&self, name: &str, value: Option<&str>) -> CfgResult { in eval() argument 16 CfgResult::Undetermined { msg } in eval() 66 CfgResult::True => Ok(true), in try_eval() 67 CfgResult::False => Ok(false), in try_eval() 68 CfgResult::Undetermined { msg } => { in try_eval() 125 impl From<bool> for CfgResult { implementation 128 CfgResult::True in from() 130 CfgResult::False in from()
|
D | mod.rs | 66 fn eval(&self, name: &str, value: Option<&str>) -> CfgResult; in eval() argument 69 pub(super) enum CfgResult { enum
|
/third_party/rust/crates/cxx/gen/build/src/ |
D | cargo.rs | 1 use crate::gen::{CfgEvaluator, CfgResult}; 18 fn eval(&self, name: &str, query_value: Option<&str>) -> CfgResult { in eval() argument 22 CfgResult::from(env.features.contains(Lookup::new(query_value))) in eval() 25 CfgResult::Undetermined { msg } in eval() 30 return CfgResult::Undetermined { msg }; in eval() 34 CfgResult::from(cargo_value.split(',').any(|value| value == query_value)) in eval() 36 CfgResult::True in eval() 40 return CfgResult::from(cfg!(debug_assertions)); in eval() 42 CfgResult::False in eval()
|