Lines Matching refs:derivable_traits
115 let mut derivable_traits = DerivableTraits::empty(); in derives_of_item() localVariable
118 derivable_traits |= DerivableTraits::DEBUG; in derives_of_item()
122 derivable_traits |= DerivableTraits::DEFAULT; in derives_of_item()
128 derivable_traits |= DerivableTraits::COPY; in derives_of_item()
139 derivable_traits |= DerivableTraits::CLONE; in derives_of_item()
144 derivable_traits |= DerivableTraits::HASH; in derives_of_item()
148 derivable_traits |= DerivableTraits::PARTIAL_ORD; in derives_of_item()
152 derivable_traits |= DerivableTraits::ORD; in derives_of_item()
156 derivable_traits |= DerivableTraits::PARTIAL_EQ; in derives_of_item()
160 derivable_traits |= DerivableTraits::EQ; in derives_of_item()
163 derivable_traits in derives_of_item()
167 fn from(derivable_traits: DerivableTraits) -> Vec<&'static str> { in from()
181 Some(derive).filter(|_| derivable_traits.contains(flag)) in from()
915 let derivable_traits = derives_of_item(item, ctx); in codegen() localVariable
916 if !derivable_traits.is_empty() { in codegen()
917 let derives: Vec<_> = derivable_traits.into(); in codegen()
1958 let derivable_traits = derives_of_item(item, ctx); in codegen() localVariable
1959 if !derivable_traits.contains(DerivableTraits::DEBUG) { in codegen()
1966 if !derivable_traits.contains(DerivableTraits::DEFAULT) { in codegen()
1975 if derivable_traits.contains(DerivableTraits::COPY) && in codegen()
1976 !derivable_traits.contains(DerivableTraits::CLONE) in codegen()
1981 if !derivable_traits.contains(DerivableTraits::PARTIAL_EQ) { in codegen()
1988 let mut derives: Vec<_> = derivable_traits.into(); in codegen()