Home
last modified time | relevance | path

Searched refs:CanDerive (Results 1 – 6 of 6) sorted by relevance

/external/rust/crates/bindgen/src/ir/analysis/
Dderive.rs9 use crate::ir::derive::CanDerive;
70 can_derive: HashMap<ItemId, CanDerive>,
110 can_derive: CanDerive, in insert() argument
120 if let CanDerive::Yes = can_derive { in insert()
140 fn constrain_type(&mut self, item: &Item, ty: &Type) -> CanDerive { in constrain_type() argument
146 CanDerive::Yes => trace!( in constrain_type()
150 CanDerive::Manually => trace!( in constrain_type()
154 CanDerive::No => trace!( in constrain_type()
167 return CanDerive::No; in constrain_type()
180 return CanDerive::No; in constrain_type()
[all …]
/external/rust/crates/bindgen/src/ir/
Dderive.rs96 pub enum CanDerive { enum
110 impl Default for CanDerive { implementation
111 fn default() -> CanDerive { in default()
112 CanDerive::Yes in default()
116 impl CanDerive { impl
123 impl ops::BitOr for CanDerive { implementation
131 impl ops::BitOrAssign for CanDerive { implementation
Dlayout.rs3 use super::derive::CanDerive;
133 ) -> CanDerive { in array_size_within_derive_limit() argument
138 CanDerive::Yes in array_size_within_derive_limit()
140 CanDerive::Manually in array_size_within_derive_limit()
Dcontext.rs11 CanDerive, CanDeriveCopy, CanDeriveDebug, CanDeriveDefault, CanDeriveEq,
255 CanDerive::Yes in can_derive_partialord()
266 CanDerive::Yes in can_derive_partialeq()
277 CanDerive::Yes && in can_derive_eq()
289 CanDerive::Yes && in can_derive_ord()
385 RefCell<HashMap<DeriveTrait, HashMap<ItemId, CanDerive>>>,
437 cannot_derive_partialeq_or_partialord: Option<HashMap<ItemId, CanDerive>>,
2219 ) -> CanDerive { in blocklisted_type_implements_trait() argument
2225 None => return CanDerive::No, in blocklisted_type_implements_trait()
2240 .unwrap_or(CanDerive::No) in blocklisted_type_implements_trait()
[all …]
/external/rust/crates/bindgen/src/
Dcallbacks.rs4 pub use crate::ir::derive::CanDerive as ImplementsTrait;
/external/rust/crates/bindgen/src/codegen/
Dmod.rs29 CanDerive, CanDeriveCopy, CanDeriveDebug, CanDeriveDefault, CanDeriveEq,
1985 CanDerive::Manually; in codegen()