Lines Matching full:cxx
18 Trait::Eq => traits.push(quote_spanned!(span=> ::cxx::core::cmp::Eq)), in expand_struct()
20 Trait::Hash => traits.push(quote_spanned!(span=> ::cxx::core::hash::Hash)), in expand_struct()
22 Trait::PartialEq => traits.push(quote_spanned!(span=> ::cxx::core::cmp::PartialEq)), in expand_struct()
60 traits.push(quote_spanned!(span=> ::cxx::core::cmp::Eq)); in expand_enum()
64 Trait::Hash => traits.push(quote_spanned!(span=> ::cxx::core::hash::Hash)), in expand_enum()
67 traits.push(quote_spanned!(span=> ::cxx::core::cmp::PartialEq)); in expand_enum()
86 traits.push(quote!(::cxx::core::cmp::Eq)); in expand_enum()
89 traits.push(quote!(::cxx::core::cmp::PartialEq)); in expand_enum()
102 impl #generics ::cxx::core::marker::Copy for #ident #generics {} in struct_copy()
121 #(#fields: ::cxx::core::clone::Clone::clone(#values),)* in struct_clone()
126 impl #generics ::cxx::core::clone::Clone for #ident #generics { in struct_clone()
142 impl #generics ::cxx::core::fmt::Debug for #ident #generics { in struct_debug()
143 … fn fmt(&self, formatter: &mut ::cxx::core::fmt::Formatter<'_>) -> ::cxx::core::fmt::Result { in struct_debug()
159 impl #generics ::cxx::core::default::Default for #ident #generics { in struct_default()
163 #fields: ::cxx::core::default::Default::default(), in struct_default()
177 impl #generics ::cxx::core::cmp::Ord for #ident #generics { in struct_ord()
178 fn cmp(&self, other: &Self) -> ::cxx::core::cmp::Ordering { in struct_ord()
180 match ::cxx::core::cmp::Ord::cmp(&self.#fields, &other.#fields) { in struct_ord()
181 ::cxx::core::cmp::Ordering::Equal => {} in struct_ord()
185 ::cxx::core::cmp::Ordering::Equal in struct_ord()
197 ::cxx::core::option::Option::Some(::cxx::core::cmp::Ord::cmp(self, other)) in struct_partial_ord()
203 match ::cxx::core::cmp::PartialOrd::partial_cmp(&self.#fields, &other.#fields) { in struct_partial_ord()
204 ::cxx::core::option::Option::Some(::cxx::core::cmp::Ordering::Equal) => {} in struct_partial_ord()
208 ::cxx::core::option::Option::Some(::cxx::core::cmp::Ordering::Equal) in struct_partial_ord()
213 impl #generics ::cxx::core::cmp::PartialOrd for #ident #generics { in struct_partial_ord()
214 … fn partial_cmp(&self, other: &Self) -> ::cxx::core::option::Option<::cxx::core::cmp::Ordering> { in struct_partial_ord()
225 impl ::cxx::core::marker::Copy for #ident {} in enum_copy()
233 impl ::cxx::core::clone::Clone for #ident { in enum_clone()
253 impl ::cxx::core::fmt::Debug for #ident { in enum_debug()
254 … fn fmt(&self, formatter: &mut ::cxx::core::fmt::Formatter<'_>) -> ::cxx::core::fmt::Result { in enum_debug()
257 _ => ::cxx::core::write!(formatter, #fallback, self.repr), in enum_debug()
268 impl ::cxx::core::cmp::Ord for #ident { in enum_ord()
269 fn cmp(&self, other: &Self) -> ::cxx::core::cmp::Ordering { in enum_ord()
270 ::cxx::core::cmp::Ord::cmp(&self.repr, &other.repr) in enum_ord()
280 impl ::cxx::core::cmp::PartialOrd for #ident { in enum_partial_ord()
281 … fn partial_cmp(&self, other: &Self) -> ::cxx::core::option::Option<::cxx::core::cmp::Ordering> { in enum_partial_ord()
282 ::cxx::core::cmp::PartialOrd::partial_cmp(&self.repr, &other.repr) in enum_partial_ord()