Lines Matching refs:traits
9 let mut traits = Vec::new();
18 Trait::Eq => traits.push(quote_spanned!(span=> ::cxx::core::cmp::Eq)),
20 Trait::Hash => traits.push(quote_spanned!(span=> ::cxx::core::hash::Hash)),
22 Trait::PartialEq => traits.push(quote_spanned!(span=> ::cxx::core::cmp::PartialEq)),
24 Trait::Serialize => traits.push(quote_spanned!(span=> ::serde::Serialize)),
25 Trait::Deserialize => traits.push(quote_spanned!(span=> ::serde::Deserialize)),
29 if traits.is_empty() {
32 *actual_derives = Some(quote!(#[derive(#(#traits),*)]));
40 let mut traits = Vec::new();
60 traits.push(quote_spanned!(span=> ::cxx::core::cmp::Eq));
64 Trait::Hash => traits.push(quote_spanned!(span=> ::cxx::core::hash::Hash)),
67 traits.push(quote_spanned!(span=> ::cxx::core::cmp::PartialEq));
71 Trait::Serialize => traits.push(quote_spanned!(span=> ::serde::Serialize)),
72 Trait::Deserialize => traits.push(quote_spanned!(span=> ::serde::Deserialize)),
86 traits.push(quote!(::cxx::core::cmp::Eq));
89 traits.push(quote!(::cxx::core::cmp::PartialEq));
92 *actual_derives = Some(quote!(#[derive(#(#traits),*)]));