Lines Matching full:cxx
21 Trait::Eq => traits.push(quote_spanned!(span=> ::cxx::core::cmp::Eq)), in expand_struct()
23 Trait::Hash => traits.push(quote_spanned!(span=> ::cxx::core::hash::Hash)), in expand_struct()
25 Trait::PartialEq => traits.push(quote_spanned!(span=> ::cxx::core::cmp::PartialEq)), in expand_struct()
63 traits.push(quote_spanned!(span=> ::cxx::core::cmp::Eq)); in expand_enum()
67 Trait::Hash => traits.push(quote_spanned!(span=> ::cxx::core::hash::Hash)), in expand_enum()
70 traits.push(quote_spanned!(span=> ::cxx::core::cmp::PartialEq)); in expand_enum()
89 traits.push(quote!(::cxx::core::cmp::Eq)); in expand_enum()
92 traits.push(quote!(::cxx::core::cmp::PartialEq)); in expand_enum()
105 impl #generics ::cxx::core::marker::Copy for #ident #generics {} in struct_copy()
124 #(#fields: ::cxx::core::clone::Clone::clone(#values),)* in struct_clone()
130 impl #generics ::cxx::core::clone::Clone for #ident #generics { in struct_clone()
146 impl #generics ::cxx::core::fmt::Debug for #ident #generics { in struct_debug()
147 … fn fmt(&self, formatter: &mut ::cxx::core::fmt::Formatter<'_>) -> ::cxx::core::fmt::Result { in struct_debug()
163 impl #generics ::cxx::core::default::Default for #ident #generics { in struct_default()
167 #fields: ::cxx::core::default::Default::default(), in struct_default()
181 impl #generics ::cxx::core::cmp::Ord for #ident #generics { in struct_ord()
182 fn cmp(&self, other: &Self) -> ::cxx::core::cmp::Ordering { in struct_ord()
184 match ::cxx::core::cmp::Ord::cmp(&self.#fields, &other.#fields) { in struct_ord()
185 ::cxx::core::cmp::Ordering::Equal => {} in struct_ord()
189 ::cxx::core::cmp::Ordering::Equal in struct_ord()
201 ::cxx::core::option::Option::Some(::cxx::core::cmp::Ord::cmp(self, other)) in struct_partial_ord()
207 match ::cxx::core::cmp::PartialOrd::partial_cmp(&self.#fields, &other.#fields) { in struct_partial_ord()
208 ::cxx::core::option::Option::Some(::cxx::core::cmp::Ordering::Equal) => {} in struct_partial_ord()
212 ::cxx::core::option::Option::Some(::cxx::core::cmp::Ordering::Equal) in struct_partial_ord()
217 impl #generics ::cxx::core::cmp::PartialOrd for #ident #generics { in struct_partial_ord()
220 … fn partial_cmp(&self, other: &Self) -> ::cxx::core::option::Option<::cxx::core::cmp::Ordering> { in struct_partial_ord()
231 impl ::cxx::core::marker::Copy for #ident {} in enum_copy()
240 impl ::cxx::core::clone::Clone for #ident { in enum_clone()
260 impl ::cxx::core::fmt::Debug for #ident { in enum_debug()
261 … fn fmt(&self, formatter: &mut ::cxx::core::fmt::Formatter<'_>) -> ::cxx::core::fmt::Result { in enum_debug()
264 _ => ::cxx::core::write!(formatter, #fallback, self.repr), in enum_debug()
275 impl ::cxx::core::cmp::Ord for #ident { in enum_ord()
276 fn cmp(&self, other: &Self) -> ::cxx::core::cmp::Ordering { in enum_ord()
277 ::cxx::core::cmp::Ord::cmp(&self.repr, &other.repr) in enum_ord()
287 impl ::cxx::core::cmp::PartialOrd for #ident { in enum_partial_ord()
290 … fn partial_cmp(&self, other: &Self) -> ::cxx::core::option::Option<::cxx::core::cmp::Ordering> { in enum_partial_ord()
291 ::cxx::core::cmp::PartialOrd::partial_cmp(&self.repr, &other.repr) in enum_partial_ord()