Lines Matching defs:cmp
18 Trait::Eq => traits.push(quote_spanned!(span=> ::cxx::core::cmp::Eq)),
22 Trait::PartialEq => traits.push(quote_spanned!(span=> ::cxx::core::cmp::PartialEq)),
60 traits.push(quote_spanned!(span=> ::cxx::core::cmp::Eq));
67 traits.push(quote_spanned!(span=> ::cxx::core::cmp::PartialEq));
86 traits.push(quote!(::cxx::core::cmp::Eq));
89 traits.push(quote!(::cxx::core::cmp::PartialEq));
178 impl #generics ::cxx::core::cmp::Ord for #ident #generics {
179 fn cmp(&self, other: &Self) -> ::cxx::core::cmp::Ordering {
181 match ::cxx::core::cmp::Ord::cmp(&self.#fields, &other.#fields) {
182 ::cxx::core::cmp::Ordering::Equal => {}
186 ::cxx::core::cmp::Ordering::Equal
198 ::cxx::core::option::Option::Some(::cxx::core::cmp::Ord::cmp(self, other))
204 match ::cxx::core::cmp::PartialOrd::partial_cmp(&self.#fields, &other.#fields) {
205 ::cxx::core::option::Option::Some(::cxx::core::cmp::Ordering::Equal) => {}
209 ::cxx::core::option::Option::Some(::cxx::core::cmp::Ordering::Equal)
214 impl #generics ::cxx::core::cmp::PartialOrd for #ident #generics {
215 fn partial_cmp(&self, other: &Self) -> ::cxx::core::option::Option<::cxx::core::cmp::Ordering> {
270 impl ::cxx::core::cmp::Ord for #ident {
271 fn cmp(&self, other: &Self) -> ::cxx::core::cmp::Ordering {
272 ::cxx::core::cmp::Ord::cmp(&self.repr, &other.repr)
282 impl ::cxx::core::cmp::PartialOrd for #ident {
283 fn partial_cmp(&self, other: &Self) -> ::cxx::core::option::Option<::cxx::core::cmp::Ordering> {
284 ::cxx::core::cmp::PartialOrd::partial_cmp(&self.repr, &other.repr)