| @@ -37,18 +37,34 @@ effect early_return<a> { |
| 37 | 37 | final ctl early_return(value: a) -> Never |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | | −pub type Bool { False True } |
| 40 | +pub type Bool { |
| 41 | + False |
| 42 | + True |
| 43 | +} |
| 41 | 44 | |
| 42 | | −pub type List<a> { Nil Cons(a, List<a>) } |
| 45 | +pub type List<a> { |
| 46 | + Nil |
| 47 | + Cons(a, List<a>) |
| 48 | +} |
| 43 | 49 | |
| 44 | | −pub type Option<a> { None Some(a) } |
| 50 | +pub type Option<a> { |
| 51 | + None |
| 52 | + Some(a) |
| 53 | +} |
| 45 | 54 | |
| 46 | | −pub type Result<a, e> { Ok(a) Error(e) } |
| 55 | +pub type Result<a, e> { |
| 56 | + Ok(a) |
| 57 | + Error(e) |
| 58 | +} |
| 47 | 59 | |
| 48 | 60 | /// The type with no values: the result of computations that never return. |
| 49 | | −pub type Never {} |
| 61 | +pub type Never |
| 50 | 62 | |
| 51 | | −pub type Order { Lt Eq Gt } |
| 63 | +pub type Order { |
| 64 | + Lt |
| 65 | + Eq |
| 66 | + Gt |
| 67 | +} |
| 52 | 68 | |
| 53 | 69 | /// Stop the program (or the current actor) with a message. Panics are not |
| 54 | 70 | /// tracked in effect rows (ADR 0001); use `Result` or an effect for errors |
| @@ -131,7 +147,9 @@ type LocalCapture { LocalCapture } |
| 131 | 147 | /// field for each of its fields, in order. A trait marked |
| 132 | 148 | /// `@derivable(f)` derives its method `m` as `f(Constructor(..., fields))`, |
| 133 | 149 | /// where each field's value is `m` applied to that field. |
| 134 | | −pub type Constructor<r> { Constructor(name: String, index: Int, fields: List<Field<r>>) } |
| 150 | +pub type Constructor<r> { |
| 151 | + Constructor(name: String, index: Int, fields: List<Field<r>>) |
| 152 | +} |
| 135 | 153 | |
| 136 | 154 | /// A field's label (`""` for a positional field) and its value. |
| 137 | 155 | pub type Field<r> { Field(label: String, value: r) } |
| @@ -147,7 +165,8 @@ fn show_constructor(c: Constructor<String>) -> String { |
| 147 | 165 | fn debug_constructor(c: Constructor<String>) -> String { |
| 148 | 166 | match c.fields { |
| 149 | 167 | [] -> c.name, |
| 150 | | − fields if all_labelled(fields) -> c.name <> " \{ " <> join_fields(fields, True) <> " \}", |
| 168 | + fields if all_labelled(fields) -> |
| 169 | + c.name <> " \{ " <> join_fields(fields, True) <> " \}", |
| 151 | 170 | fields -> c.name <> "(" <> join_fields(fields, False) <> ")", |
| 152 | 171 | } |
| 153 | 172 | } |
| @@ -156,7 +175,8 @@ fn join_fields(fields: List<Field<String>>, labelled: Bool) -> String { |
| 156 | 175 | match fields { |
| 157 | 176 | [] -> "", |
| 158 | 177 | [f] -> field_text(f, labelled), |
| 159 | | − [f, ..rest] -> field_text(f, labelled) <> ", " <> join_fields(rest, labelled), |
| 178 | + [f, ..rest] -> |
| 179 | + field_text(f, labelled) <> ", " <> join_fields(rest, labelled), |
| 160 | 180 | } |
| 161 | 181 | } |
| 162 | 182 | |
| @@ -216,12 +236,16 @@ fn string_concat(x: String, y: String) -> String |
| 216 | 236 | fn bytes_concat(x: Bytes, y: Bytes) -> Bytes |
| 217 | 237 | |
| 218 | 238 | impl Semigroup<String> { |
| 219 | | − fn append(x, y) { string_concat(x, y) } |
| 239 | + fn append(x, y) { |
| 240 | + string_concat(x, y) |
| 241 | + } |
| 220 | 242 | } |
| 221 | 243 | |
| 222 | 244 | /// Copies `xs`, unless it is unique: then its cells are reused. |
| 223 | 245 | impl Semigroup<List<a>> { |
| 224 | | − fn append(xs, ys) { append_lists(xs, ys) } |
| 246 | + fn append(xs, ys) { |
| 247 | + append_lists(xs, ys) |
| 248 | + } |
| 225 | 249 | } |
| 226 | 250 | |
| 227 | 251 | fn append_lists(xs, ys) { |
| @@ -232,7 +256,9 @@ fn append_lists(xs, ys) { |
| 232 | 256 | } |
| 233 | 257 | |
| 234 | 258 | impl Semigroup<Bytes> { |
| 235 | | − fn append(x, y) { bytes_concat(x, y) } |
| 259 | + fn append(x, y) { |
| 260 | + bytes_concat(x, y) |
| 261 | + } |
| 236 | 262 | } |
| 237 | 263 | |
| 238 | 264 | impl Semigroup<Order> { |
| @@ -245,57 +271,99 @@ impl Semigroup<Order> { |
| 245 | 271 | } |
| 246 | 272 | |
| 247 | 273 | impl Eq<Int> { |
| 248 | | − fn eq(x, y) { int_eq(x, y) } |
| 274 | + fn eq(x, y) { |
| 275 | + int_eq(x, y) |
| 276 | + } |
| 249 | 277 | } |
| 250 | 278 | |
| 251 | 279 | impl Ord<Int> { |
| 252 | | − fn compare(x, y) { int_compare(x, y) } |
| 280 | + fn compare(x, y) { |
| 281 | + int_compare(x, y) |
| 282 | + } |
| 253 | 283 | } |
| 254 | 284 | |
| 255 | 285 | impl Num<Int> { |
| 256 | | − fn add(x, y) { int_add(x, y) } |
| 257 | | − fn sub(x, y) { int_sub(x, y) } |
| 258 | | − fn mul(x, y) { int_mul(x, y) } |
| 259 | | − fn div(x, y) { int_div(x, y) } |
| 260 | | − fn rem(x, y) { int_rem(x, y) } |
| 261 | | − fn negate(x) { int_sub(0, x) } |
| 286 | + fn add(x, y) { |
| 287 | + int_add(x, y) |
| 288 | + } |
| 289 | + fn sub(x, y) { |
| 290 | + int_sub(x, y) |
| 291 | + } |
| 292 | + fn mul(x, y) { |
| 293 | + int_mul(x, y) |
| 294 | + } |
| 295 | + fn div(x, y) { |
| 296 | + int_div(x, y) |
| 297 | + } |
| 298 | + fn rem(x, y) { |
| 299 | + int_rem(x, y) |
| 300 | + } |
| 301 | + fn negate(x) { |
| 302 | + int_sub(0, x) |
| 303 | + } |
| 262 | 304 | } |
| 263 | 305 | |
| 264 | 306 | impl Show<Int> { |
| 265 | | − fn show(x) { int_show(x) } |
| 307 | + fn show(x) { |
| 308 | + int_show(x) |
| 309 | + } |
| 266 | 310 | } |
| 267 | 311 | |
| 268 | 312 | impl Eq<Float> { |
| 269 | | − fn eq(x, y) { float_eq(x, y) } |
| 313 | + fn eq(x, y) { |
| 314 | + float_eq(x, y) |
| 315 | + } |
| 270 | 316 | } |
| 271 | 317 | |
| 272 | 318 | impl Ord<Float> { |
| 273 | | − fn compare(x, y) { float_compare(x, y) } |
| 319 | + fn compare(x, y) { |
| 320 | + float_compare(x, y) |
| 321 | + } |
| 274 | 322 | } |
| 275 | 323 | |
| 276 | 324 | impl Num<Float> { |
| 277 | | − fn add(x, y) { float_add(x, y) } |
| 278 | | − fn sub(x, y) { float_sub(x, y) } |
| 279 | | − fn mul(x, y) { float_mul(x, y) } |
| 280 | | − fn div(x, y) { float_div(x, y) } |
| 281 | | − fn rem(x, y) { float_rem(x, y) } |
| 282 | | − fn negate(x) { float_sub(0.0, x) } |
| 325 | + fn add(x, y) { |
| 326 | + float_add(x, y) |
| 327 | + } |
| 328 | + fn sub(x, y) { |
| 329 | + float_sub(x, y) |
| 330 | + } |
| 331 | + fn mul(x, y) { |
| 332 | + float_mul(x, y) |
| 333 | + } |
| 334 | + fn div(x, y) { |
| 335 | + float_div(x, y) |
| 336 | + } |
| 337 | + fn rem(x, y) { |
| 338 | + float_rem(x, y) |
| 339 | + } |
| 340 | + fn negate(x) { |
| 341 | + float_sub(0.0, x) |
| 342 | + } |
| 283 | 343 | } |
| 284 | 344 | |
| 285 | 345 | impl Show<Float> { |
| 286 | | − fn show(x) { float_show(x) } |
| 346 | + fn show(x) { |
| 347 | + float_show(x) |
| 348 | + } |
| 287 | 349 | } |
| 288 | 350 | |
| 289 | 351 | impl Eq<String> { |
| 290 | | − fn eq(x, y) { string_eq(x, y) } |
| 352 | + fn eq(x, y) { |
| 353 | + string_eq(x, y) |
| 354 | + } |
| 291 | 355 | } |
| 292 | 356 | |
| 293 | 357 | impl Ord<String> { |
| 294 | | − fn compare(x, y) { string_compare(x, y) } |
| 358 | + fn compare(x, y) { |
| 359 | + string_compare(x, y) |
| 360 | + } |
| 295 | 361 | } |
| 296 | 362 | |
| 297 | 363 | impl Show<String> { |
| 298 | | − fn show(x) { x } |
| 364 | + fn show(x) { |
| 365 | + x |
| 366 | + } |
| 299 | 367 | } |
| 300 | 368 | |
| 301 | 369 | @extern(c, "tl_bytes_eq") |
| @@ -304,12 +372,16 @@ fn bytes_eq(x: Bytes, y: Bytes) -> Bool |
| 304 | 372 | fn bytes_compare(x: Bytes, y: Bytes) -> Order |
| 305 | 373 | |
| 306 | 374 | impl Eq<Bytes> { |
| 307 | | − fn eq(x, y) { bytes_eq(x, y) } |
| 375 | + fn eq(x, y) { |
| 376 | + bytes_eq(x, y) |
| 377 | + } |
| 308 | 378 | } |
| 309 | 379 | |
| 310 | 380 | /// Lexicographic, byte by byte: a prefix is smaller. |
| 311 | 381 | impl Ord<Bytes> { |
| 312 | | − fn compare(x, y) { bytes_compare(x, y) } |
| 382 | + fn compare(x, y) { |
| 383 | + bytes_compare(x, y) |
| 384 | + } |
| 313 | 385 | } |
| 314 | 386 | |
| 315 | 387 | impl Eq<Bool> { |
| @@ -322,7 +394,9 @@ impl Eq<Bool> { |
| 322 | 394 | } |
| 323 | 395 | |
| 324 | 396 | impl Show<Bool> { |
| 325 | | − fn show(x) { if x { "True" } else { "False" } } |
| 397 | + fn show(x) { |
| 398 | + if x { "True" } else { "False" } |
| 399 | + } |
| 326 | 400 | } |
| 327 | 401 | |
| 328 | 402 | impl Eq<List<a>> where Eq<a> { |
| @@ -346,7 +420,9 @@ impl Eq<Option<a>> where Eq<a> { |
| 346 | 420 | } |
| 347 | 421 | |
| 348 | 422 | impl Show<List<a>> where Show<a> { |
| 349 | | − fn show(xs) { "[" <> show_items(xs) <> "]" } |
| 423 | + fn show(xs) { |
| 424 | + "[" <> show_items(xs) <> "]" |
| 425 | + } |
| 350 | 426 | } |
| 351 | 427 | |
| 352 | 428 | fn show_items(xs) { |
| @@ -380,27 +456,39 @@ fn hash_bytes(x: Bytes) -> Int |
| 380 | 456 | pub fn hash_combine(a: Int, b: Int) -> Int |
| 381 | 457 | |
| 382 | 458 | impl Hash<Int> { |
| 383 | | − fn hash(x) { hash_int(x) } |
| 459 | + fn hash(x) { |
| 460 | + hash_int(x) |
| 461 | + } |
| 384 | 462 | } |
| 385 | 463 | |
| 386 | 464 | impl Hash<Float> { |
| 387 | | − fn hash(x) { hash_float(x) } |
| 465 | + fn hash(x) { |
| 466 | + hash_float(x) |
| 467 | + } |
| 388 | 468 | } |
| 389 | 469 | |
| 390 | 470 | impl Hash<String> { |
| 391 | | − fn hash(x) { hash_string(x) } |
| 471 | + fn hash(x) { |
| 472 | + hash_string(x) |
| 473 | + } |
| 392 | 474 | } |
| 393 | 475 | |
| 394 | 476 | impl Hash<Bytes> { |
| 395 | | − fn hash(x) { hash_bytes(x) } |
| 477 | + fn hash(x) { |
| 478 | + hash_bytes(x) |
| 479 | + } |
| 396 | 480 | } |
| 397 | 481 | |
| 398 | 482 | impl Hash<Bool> { |
| 399 | | − fn hash(x) { if x { 1 } else { 0 } } |
| 483 | + fn hash(x) { |
| 484 | + if x { 1 } else { 0 } |
| 485 | + } |
| 400 | 486 | } |
| 401 | 487 | |
| 402 | 488 | impl Hash<List<a>> where Hash<a> { |
| 403 | | − fn hash(xs) { hash_items(xs, 7) } |
| 489 | + fn hash(xs) { |
| 490 | + hash_items(xs, 7) |
| 491 | + } |
| 404 | 492 | } |
| 405 | 493 | |
| 406 | 494 | fn hash_items(xs, acc) { |
| @@ -420,27 +508,39 @@ impl Hash<Option<a>> where Hash<a> { |
| 420 | 508 | } |
| 421 | 509 | |
| 422 | 510 | impl Default<Int> { |
| 423 | | − fn default() { 0 } |
| 511 | + fn default() { |
| 512 | + 0 |
| 513 | + } |
| 424 | 514 | } |
| 425 | 515 | |
| 426 | 516 | impl Default<Float> { |
| 427 | | − fn default() { 0.0 } |
| 517 | + fn default() { |
| 518 | + 0.0 |
| 519 | + } |
| 428 | 520 | } |
| 429 | 521 | |
| 430 | 522 | impl Default<String> { |
| 431 | | − fn default() { "" } |
| 523 | + fn default() { |
| 524 | + "" |
| 525 | + } |
| 432 | 526 | } |
| 433 | 527 | |
| 434 | 528 | impl Default<Bool> { |
| 435 | | − fn default() { False } |
| 529 | + fn default() { |
| 530 | + False |
| 531 | + } |
| 436 | 532 | } |
| 437 | 533 | |
| 438 | 534 | impl Default<List<a>> { |
| 439 | | − fn default() { [] } |
| 535 | + fn default() { |
| 536 | + [] |
| 537 | + } |
| 440 | 538 | } |
| 441 | 539 | |
| 442 | 540 | impl Default<Option<a>> { |
| 443 | | − fn default() { None } |
| 541 | + fn default() { |
| 542 | + None |
| 543 | + } |
| 444 | 544 | } |
| 445 | 545 | |
| 446 | 546 | impl Ord<Bool> { |
| @@ -484,19 +584,27 @@ impl Ord<Option<a>> where Ord<a> { |
| 484 | 584 | fn string_debug(x: String) -> String |
| 485 | 585 | |
| 486 | 586 | impl Debug<Int> { |
| 487 | | − fn debug(x) { show(x) } |
| 587 | + fn debug(x) { |
| 588 | + show(x) |
| 589 | + } |
| 488 | 590 | } |
| 489 | 591 | |
| 490 | 592 | impl Debug<Float> { |
| 491 | | − fn debug(x) { show(x) } |
| 593 | + fn debug(x) { |
| 594 | + show(x) |
| 595 | + } |
| 492 | 596 | } |
| 493 | 597 | |
| 494 | 598 | impl Debug<Bool> { |
| 495 | | − fn debug(x) { show(x) } |
| 599 | + fn debug(x) { |
| 600 | + show(x) |
| 601 | + } |
| 496 | 602 | } |
| 497 | 603 | |
| 498 | 604 | impl Debug<String> { |
| 499 | | − fn debug(x) { string_debug(x) } |
| 605 | + fn debug(x) { |
| 606 | + string_debug(x) |
| 607 | + } |
| 500 | 608 | } |
| 501 | 609 | |
| 502 | 610 | @extern(c, "tl_bytes_debug") |
| @@ -504,11 +612,15 @@ fn bytes_debug(x: Bytes) -> String |
| 504 | 612 | |
| 505 | 613 | /// `b"..."`: printable ASCII as is, other bytes escaped (`\xff`). |
| 506 | 614 | impl Debug<Bytes> { |
| 507 | | − fn debug(x) { bytes_debug(x) } |
| 615 | + fn debug(x) { |
| 616 | + bytes_debug(x) |
| 617 | + } |
| 508 | 618 | } |
| 509 | 619 | |
| 510 | 620 | impl Debug<List<a>> where Debug<a> { |
| 511 | | − fn debug(xs) { "[" <> debug_items(xs) <> "]" } |
| 621 | + fn debug(xs) { |
| 622 | + "[" <> debug_items(xs) <> "]" |
| 623 | + } |
| 512 | 624 | } |
| 513 | 625 | |
| 514 | 626 | fn debug_items(xs) { |
| @@ -583,290 +695,1254 @@ impl Hash<Result<a, e>> where Hash<a>, Hash<e> { |
| 583 | 695 | // `hash_combine`, as a derived impl does. |
| 584 | 696 | |
| 585 | 697 | impl Eq<()> { |
| 586 | | − fn eq(_, _) { True } |
| 698 | + fn eq(_, _) { |
| 699 | + True |
| 700 | + } |
| 587 | 701 | } |
| 588 | 702 | |
| 589 | 703 | impl Ord<()> { |
| 590 | | − fn compare(_, _) { Eq } |
| 704 | + fn compare(_, _) { |
| 705 | + Eq |
| 706 | + } |
| 591 | 707 | } |
| 592 | 708 | |
| 593 | 709 | impl Show<()> { |
| 594 | | − fn show(_) { "()" } |
| 710 | + fn show(_) { |
| 711 | + "()" |
| 712 | + } |
| 595 | 713 | } |
| 596 | 714 | |
| 597 | 715 | impl Debug<()> { |
| 598 | | − fn debug(_) { "()" } |
| 716 | + fn debug(_) { |
| 717 | + "()" |
| 718 | + } |
| 599 | 719 | } |
| 600 | 720 | |
| 601 | 721 | impl Hash<()> { |
| 602 | | − fn hash(_) { 0 } |
| 722 | + fn hash(_) { |
| 723 | + 0 |
| 724 | + } |
| 603 | 725 | } |
| 604 | 726 | |
| 605 | 727 | impl Default<()> { |
| 606 | | − fn default() { () } |
| 728 | + fn default() { |
| 729 | + () |
| 730 | + } |
| 607 | 731 | } |
| 608 | 732 | |
| 609 | 733 | impl Eq<(a, b)> where Eq<a>, Eq<b> { |
| 610 | | − fn eq(x, y) { x.0 == y.0 && x.1 == y.1 } |
| 734 | + fn eq(x, y) { |
| 735 | + x.0 == y.0 && x.1 == y.1 |
| 736 | + } |
| 611 | 737 | } |
| 612 | 738 | |
| 613 | 739 | impl Ord<(a, b)> where Ord<a>, Ord<b> { |
| 614 | | − fn compare(x, y) { compare(x.0, y.0) <> compare(x.1, y.1) } |
| 740 | + fn compare(x, y) { |
| 741 | + compare(x.0, y.0) <> compare(x.1, y.1) |
| 742 | + } |
| 615 | 743 | } |
| 616 | 744 | |
| 617 | 745 | impl Show<(a, b)> where Show<a>, Show<b> { |
| 618 | | − fn show(x) { "(" <> show(x.0) <> ", " <> show(x.1) <> ")" } |
| 746 | + fn show(x) { |
| 747 | + "(" <> show(x.0) <> ", " <> show(x.1) <> ")" |
| 748 | + } |
| 619 | 749 | } |
| 620 | 750 | |
| 621 | 751 | impl Debug<(a, b)> where Debug<a>, Debug<b> { |
| 622 | | − fn debug(x) { "(" <> debug(x.0) <> ", " <> debug(x.1) <> ")" } |
| 752 | + fn debug(x) { |
| 753 | + "(" <> debug(x.0) <> ", " <> debug(x.1) <> ")" |
| 754 | + } |
| 623 | 755 | } |
| 624 | 756 | |
| 625 | 757 | impl Hash<(a, b)> where Hash<a>, Hash<b> { |
| 626 | | − fn hash(x) { hash_combine(hash_combine(0, hash(x.0)), hash(x.1)) } |
| 758 | + fn hash(x) { |
| 759 | + hash_combine(hash_combine(0, hash(x.0)), hash(x.1)) |
| 760 | + } |
| 627 | 761 | } |
| 628 | 762 | |
| 629 | 763 | impl Default<(a, b)> where Default<a>, Default<b> { |
| 630 | | − fn default() { (default(), default()) } |
| 764 | + fn default() { |
| 765 | + (default(), default()) |
| 766 | + } |
| 631 | 767 | } |
| 632 | 768 | |
| 633 | 769 | impl Eq<(a, b, c)> where Eq<a>, Eq<b>, Eq<c> { |
| 634 | | − fn eq(x, y) { x.0 == y.0 && x.1 == y.1 && x.2 == y.2 } |
| 770 | + fn eq(x, y) { |
| 771 | + x.0 == y.0 && x.1 == y.1 && x.2 == y.2 |
| 772 | + } |
| 635 | 773 | } |
| 636 | 774 | |
| 637 | 775 | impl Ord<(a, b, c)> where Ord<a>, Ord<b>, Ord<c> { |
| 638 | | − fn compare(x, y) { compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) } |
| 776 | + fn compare(x, y) { |
| 777 | + compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) |
| 778 | + } |
| 639 | 779 | } |
| 640 | 780 | |
| 641 | 781 | impl Show<(a, b, c)> where Show<a>, Show<b>, Show<c> { |
| 642 | | − fn show(x) { "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ")" } |
| 782 | + fn show(x) { |
| 783 | + "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ")" |
| 784 | + } |
| 643 | 785 | } |
| 644 | 786 | |
| 645 | 787 | impl Debug<(a, b, c)> where Debug<a>, Debug<b>, Debug<c> { |
| 646 | | − fn debug(x) { "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ")" } |
| 788 | + fn debug(x) { |
| 789 | + "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ")" |
| 790 | + } |
| 647 | 791 | } |
| 648 | 792 | |
| 649 | 793 | impl Hash<(a, b, c)> where Hash<a>, Hash<b>, Hash<c> { |
| 650 | | − fn hash(x) { hash_combine(hash_combine(hash_combine(0, hash(x.0)), hash(x.1)), hash(x.2)) } |
| 794 | + fn hash(x) { |
| 795 | + hash_combine(hash_combine(hash_combine(0, hash(x.0)), hash(x.1)), hash(x.2)) |
| 796 | + } |
| 651 | 797 | } |
| 652 | 798 | |
| 653 | 799 | impl Default<(a, b, c)> where Default<a>, Default<b>, Default<c> { |
| 654 | | − fn default() { (default(), default(), default()) } |
| 800 | + fn default() { |
| 801 | + (default(), default(), default()) |
| 802 | + } |
| 655 | 803 | } |
| 656 | 804 | |
| 657 | 805 | impl Eq<(a, b, c, d)> where Eq<a>, Eq<b>, Eq<c>, Eq<d> { |
| 658 | | − fn eq(x, y) { x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 } |
| 806 | + fn eq(x, y) { |
| 807 | + x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 |
| 808 | + } |
| 659 | 809 | } |
| 660 | 810 | |
| 661 | 811 | impl Ord<(a, b, c, d)> where Ord<a>, Ord<b>, Ord<c>, Ord<d> { |
| 662 | | − fn compare(x, y) { compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) <> compare(x.3, y.3) } |
| 812 | + fn compare(x, y) { |
| 813 | + compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) |
| 814 | + <> compare(x.3, y.3) |
| 815 | + } |
| 663 | 816 | } |
| 664 | 817 | |
| 665 | 818 | impl Show<(a, b, c, d)> where Show<a>, Show<b>, Show<c>, Show<d> { |
| 666 | | − fn show(x) { "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " <> show(x.3) <> ")" } |
| 819 | + fn show(x) { |
| 820 | + "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " |
| 821 | + <> show(x.3) |
| 822 | + <> ")" |
| 823 | + } |
| 667 | 824 | } |
| 668 | 825 | |
| 669 | 826 | impl Debug<(a, b, c, d)> where Debug<a>, Debug<b>, Debug<c>, Debug<d> { |
| 670 | | − fn debug(x) { "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " <> debug(x.3) <> ")" } |
| 827 | + fn debug(x) { |
| 828 | + "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " |
| 829 | + <> debug(x.3) |
| 830 | + <> ")" |
| 831 | + } |
| 671 | 832 | } |
| 672 | 833 | |
| 673 | 834 | impl Hash<(a, b, c, d)> where Hash<a>, Hash<b>, Hash<c>, Hash<d> { |
| 674 | | − fn hash(x) { hash_combine(hash_combine(hash_combine(hash_combine(0, hash(x.0)), hash(x.1)), hash(x.2)), hash(x.3)) } |
| 835 | + fn hash(x) { |
| 836 | + hash_combine( |
| 837 | + hash_combine( |
| 838 | + hash_combine(hash_combine(0, hash(x.0)), hash(x.1)) |
| 839 | + , hash(x.2) |
| 840 | + ) |
| 841 | + , hash(x.3) |
| 842 | + ) |
| 843 | + } |
| 675 | 844 | } |
| 676 | 845 | |
| 677 | | −impl Default<(a, b, c, d)> where Default<a>, Default<b>, Default<c>, Default<d> { |
| 678 | | − fn default() { (default(), default(), default(), default()) } |
| 846 | +impl Default<(a, b, c, d)> where Default<a> |
| 847 | +, Default<b> |
| 848 | +, Default<c> |
| 849 | +, Default<d> { |
| 850 | + fn default() { |
| 851 | + (default(), default(), default(), default()) |
| 852 | + } |
| 679 | 853 | } |
| 680 | 854 | |
| 681 | 855 | impl Eq<(a, b, c, d, e)> where Eq<a>, Eq<b>, Eq<c>, Eq<d>, Eq<e> { |
| 682 | | − fn eq(x, y) { x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 } |
| 856 | + fn eq(x, y) { |
| 857 | + x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 |
| 858 | + } |
| 683 | 859 | } |
| 684 | 860 | |
| 685 | 861 | impl Ord<(a, b, c, d, e)> where Ord<a>, Ord<b>, Ord<c>, Ord<d>, Ord<e> { |
| 686 | | − fn compare(x, y) { compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) <> compare(x.3, y.3) <> compare(x.4, y.4) } |
| 862 | + fn compare(x, y) { |
| 863 | + compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) |
| 864 | + <> compare(x.3, y.3) |
| 865 | + <> compare(x.4, y.4) |
| 866 | + } |
| 687 | 867 | } |
| 688 | 868 | |
| 689 | 869 | impl Show<(a, b, c, d, e)> where Show<a>, Show<b>, Show<c>, Show<d>, Show<e> { |
| 690 | | − fn show(x) { "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " <> show(x.3) <> ", " <> show(x.4) <> ")" } |
| 870 | + fn show(x) { |
| 871 | + "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " |
| 872 | + <> show(x.3) |
| 873 | + <> ", " |
| 874 | + <> show(x.4) |
| 875 | + <> ")" |
| 876 | + } |
| 691 | 877 | } |
| 692 | 878 | |
| 693 | | −impl Debug<(a, b, c, d, e)> where Debug<a>, Debug<b>, Debug<c>, Debug<d>, Debug<e> { |
| 694 | | − fn debug(x) { "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " <> debug(x.3) <> ", " <> debug(x.4) <> ")" } |
| 879 | +impl Debug<(a, b, c, d, e)> where Debug<a> |
| 880 | +, Debug<b> |
| 881 | +, Debug<c> |
| 882 | +, Debug<d> |
| 883 | +, Debug<e> { |
| 884 | + fn debug(x) { |
| 885 | + "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " |
| 886 | + <> debug(x.3) |
| 887 | + <> ", " |
| 888 | + <> debug(x.4) |
| 889 | + <> ")" |
| 890 | + } |
| 695 | 891 | } |
| 696 | 892 | |
| 697 | 893 | impl Hash<(a, b, c, d, e)> where Hash<a>, Hash<b>, Hash<c>, Hash<d>, Hash<e> { |
| 698 | | − fn hash(x) { hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(0, hash(x.0)), hash(x.1)), hash(x.2)), hash(x.3)), hash(x.4)) } |
| 894 | + fn hash(x) { |
| 895 | + hash_combine( |
| 896 | + hash_combine( |
| 897 | + hash_combine( |
| 898 | + hash_combine(hash_combine(0, hash(x.0)), hash(x.1)) |
| 899 | + , hash(x.2) |
| 900 | + ) |
| 901 | + , hash(x.3) |
| 902 | + ) |
| 903 | + , hash(x.4) |
| 904 | + ) |
| 905 | + } |
| 699 | 906 | } |
| 700 | 907 | |
| 701 | | −impl Default<(a, b, c, d, e)> where Default<a>, Default<b>, Default<c>, Default<d>, Default<e> { |
| 702 | | − fn default() { (default(), default(), default(), default(), default()) } |
| 908 | +impl Default<(a, b, c, d, e)> where Default<a> |
| 909 | +, Default<b> |
| 910 | +, Default<c> |
| 911 | +, Default<d> |
| 912 | +, Default<e> { |
| 913 | + fn default() { |
| 914 | + (default(), default(), default(), default(), default()) |
| 915 | + } |
| 703 | 916 | } |
| 704 | 917 | |
| 705 | 918 | impl Eq<(a, b, c, d, e, f)> where Eq<a>, Eq<b>, Eq<c>, Eq<d>, Eq<e>, Eq<f> { |
| 706 | | − fn eq(x, y) { x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 && x.5 == y.5 } |
| 919 | + fn eq(x, y) { |
| 920 | + x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 |
| 921 | + && x.5 == y.5 |
| 922 | + } |
| 707 | 923 | } |
| 708 | 924 | |
| 709 | | −impl Ord<(a, b, c, d, e, f)> where Ord<a>, Ord<b>, Ord<c>, Ord<d>, Ord<e>, Ord<f> { |
| 710 | | − fn compare(x, y) { compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) <> compare(x.3, y.3) <> compare(x.4, y.4) <> compare(x.5, y.5) } |
| 925 | +impl Ord<(a, b, c, d, e, f)> where Ord<a> |
| 926 | +, Ord<b> |
| 927 | +, Ord<c> |
| 928 | +, Ord<d> |
| 929 | +, Ord<e> |
| 930 | +, Ord<f> { |
| 931 | + fn compare(x, y) { |
| 932 | + compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) |
| 933 | + <> compare(x.3, y.3) |
| 934 | + <> compare(x.4, y.4) |
| 935 | + <> compare(x.5, y.5) |
| 936 | + } |
| 711 | 937 | } |
| 712 | 938 | |
| 713 | | −impl Show<(a, b, c, d, e, f)> where Show<a>, Show<b>, Show<c>, Show<d>, Show<e>, Show<f> { |
| 714 | | − fn show(x) { "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " <> show(x.3) <> ", " <> show(x.4) <> ", " <> show(x.5) <> ")" } |
| 939 | +impl Show<(a, b, c, d, e, f)> where Show<a> |
| 940 | +, Show<b> |
| 941 | +, Show<c> |
| 942 | +, Show<d> |
| 943 | +, Show<e> |
| 944 | +, Show<f> { |
| 945 | + fn show(x) { |
| 946 | + "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " |
| 947 | + <> show(x.3) |
| 948 | + <> ", " |
| 949 | + <> show(x.4) |
| 950 | + <> ", " |
| 951 | + <> show(x.5) |
| 952 | + <> ")" |
| 953 | + } |
| 715 | 954 | } |
| 716 | 955 | |
| 717 | | −impl Debug<(a, b, c, d, e, f)> where Debug<a>, Debug<b>, Debug<c>, Debug<d>, Debug<e>, Debug<f> { |
| 718 | | − fn debug(x) { "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " <> debug(x.3) <> ", " <> debug(x.4) <> ", " <> debug(x.5) <> ")" } |
| 956 | +impl Debug<(a, b, c, d, e, f)> where Debug<a> |
| 957 | +, Debug<b> |
| 958 | +, Debug<c> |
| 959 | +, Debug<d> |
| 960 | +, Debug<e> |
| 961 | +, Debug<f> { |
| 962 | + fn debug(x) { |
| 963 | + "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " |
| 964 | + <> debug(x.3) |
| 965 | + <> ", " |
| 966 | + <> debug(x.4) |
| 967 | + <> ", " |
| 968 | + <> debug(x.5) |
| 969 | + <> ")" |
| 970 | + } |
| 719 | 971 | } |
| 720 | 972 | |
| 721 | | −impl Hash<(a, b, c, d, e, f)> where Hash<a>, Hash<b>, Hash<c>, Hash<d>, Hash<e>, Hash<f> { |
| 722 | | − fn hash(x) { hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(0, hash(x.0)), hash(x.1)), hash(x.2)), hash(x.3)), hash(x.4)), hash(x.5)) } |
| 973 | +impl Hash<(a, b, c, d, e, f)> where Hash<a> |
| 974 | +, Hash<b> |
| 975 | +, Hash<c> |
| 976 | +, Hash<d> |
| 977 | +, Hash<e> |
| 978 | +, Hash<f> { |
| 979 | + fn hash(x) { |
| 980 | + hash_combine( |
| 981 | + hash_combine( |
| 982 | + hash_combine( |
| 983 | + hash_combine( |
| 984 | + hash_combine(hash_combine(0, hash(x.0)), hash(x.1)) |
| 985 | + , hash(x.2) |
| 986 | + ) |
| 987 | + , hash(x.3) |
| 988 | + ) |
| 989 | + , hash(x.4) |
| 990 | + ) |
| 991 | + , hash(x.5) |
| 992 | + ) |
| 993 | + } |
| 723 | 994 | } |
| 724 | 995 | |
| 725 | | −impl Default<(a, b, c, d, e, f)> where Default<a>, Default<b>, Default<c>, Default<d>, Default<e>, Default<f> { |
| 726 | | − fn default() { (default(), default(), default(), default(), default(), default()) } |
| 996 | +impl Default<(a, b, c, d, e, f)> where Default<a> |
| 997 | +, Default<b> |
| 998 | +, Default<c> |
| 999 | +, Default<d> |
| 1000 | +, Default<e> |
| 1001 | +, Default<f> { |
| 1002 | + fn default() { |
| 1003 | + (default(), default(), default(), default(), default(), default()) |
| 1004 | + } |
| 727 | 1005 | } |
| 728 | 1006 | |
| 729 | | −impl Eq<(a, b, c, d, e, f, g)> where Eq<a>, Eq<b>, Eq<c>, Eq<d>, Eq<e>, Eq<f>, Eq<g> { |
| 730 | | − fn eq(x, y) { x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 && x.5 == y.5 && x.6 == y.6 } |
| 1007 | +impl Eq<(a, b, c, d, e, f, g)> where Eq<a> |
| 1008 | +, Eq<b> |
| 1009 | +, Eq<c> |
| 1010 | +, Eq<d> |
| 1011 | +, Eq<e> |
| 1012 | +, Eq<f> |
| 1013 | +, Eq<g> { |
| 1014 | + fn eq(x, y) { |
| 1015 | + x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 |
| 1016 | + && x.5 == y.5 |
| 1017 | + && x.6 == y.6 |
| 1018 | + } |
| 731 | 1019 | } |
| 732 | 1020 | |
| 733 | | −impl Ord<(a, b, c, d, e, f, g)> where Ord<a>, Ord<b>, Ord<c>, Ord<d>, Ord<e>, Ord<f>, Ord<g> { |
| 734 | | − fn compare(x, y) { compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) <> compare(x.3, y.3) <> compare(x.4, y.4) <> compare(x.5, y.5) <> compare(x.6, y.6) } |
| 1021 | +impl Ord<(a, b, c, d, e, f, g)> where Ord<a> |
| 1022 | +, Ord<b> |
| 1023 | +, Ord<c> |
| 1024 | +, Ord<d> |
| 1025 | +, Ord<e> |
| 1026 | +, Ord<f> |
| 1027 | +, Ord<g> { |
| 1028 | + fn compare(x, y) { |
| 1029 | + compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) |
| 1030 | + <> compare(x.3, y.3) |
| 1031 | + <> compare(x.4, y.4) |
| 1032 | + <> compare(x.5, y.5) |
| 1033 | + <> compare(x.6, y.6) |
| 1034 | + } |
| 735 | 1035 | } |
| 736 | 1036 | |
| 737 | | −impl Show<(a, b, c, d, e, f, g)> where Show<a>, Show<b>, Show<c>, Show<d>, Show<e>, Show<f>, Show<g> { |
| 738 | | − fn show(x) { "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " <> show(x.3) <> ", " <> show(x.4) <> ", " <> show(x.5) <> ", " <> show(x.6) <> ")" } |
| 1037 | +impl Show<(a, b, c, d, e, f, g)> where Show<a> |
| 1038 | +, Show<b> |
| 1039 | +, Show<c> |
| 1040 | +, Show<d> |
| 1041 | +, Show<e> |
| 1042 | +, Show<f> |
| 1043 | +, Show<g> { |
| 1044 | + fn show(x) { |
| 1045 | + "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " |
| 1046 | + <> show(x.3) |
| 1047 | + <> ", " |
| 1048 | + <> show(x.4) |
| 1049 | + <> ", " |
| 1050 | + <> show(x.5) |
| 1051 | + <> ", " |
| 1052 | + <> show(x.6) |
| 1053 | + <> ")" |
| 1054 | + } |
| 739 | 1055 | } |
| 740 | 1056 | |
| 741 | | −impl Debug<(a, b, c, d, e, f, g)> where Debug<a>, Debug<b>, Debug<c>, Debug<d>, Debug<e>, Debug<f>, Debug<g> { |
| 742 | | − fn debug(x) { "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " <> debug(x.3) <> ", " <> debug(x.4) <> ", " <> debug(x.5) <> ", " <> debug(x.6) <> ")" } |
| 1057 | +impl Debug<(a, b, c, d, e, f, g)> where Debug<a> |
| 1058 | +, Debug<b> |
| 1059 | +, Debug<c> |
| 1060 | +, Debug<d> |
| 1061 | +, Debug<e> |
| 1062 | +, Debug<f> |
| 1063 | +, Debug<g> { |
| 1064 | + fn debug(x) { |
| 1065 | + "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " |
| 1066 | + <> debug(x.3) |
| 1067 | + <> ", " |
| 1068 | + <> debug(x.4) |
| 1069 | + <> ", " |
| 1070 | + <> debug(x.5) |
| 1071 | + <> ", " |
| 1072 | + <> debug(x.6) |
| 1073 | + <> ")" |
| 1074 | + } |
| 743 | 1075 | } |
| 744 | 1076 | |
| 745 | | −impl Hash<(a, b, c, d, e, f, g)> where Hash<a>, Hash<b>, Hash<c>, Hash<d>, Hash<e>, Hash<f>, Hash<g> { |
| 746 | | − fn hash(x) { hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(0, hash(x.0)), hash(x.1)), hash(x.2)), hash(x.3)), hash(x.4)), hash(x.5)), hash(x.6)) } |
| 1077 | +impl Hash<(a, b, c, d, e, f, g)> where Hash<a> |
| 1078 | +, Hash<b> |
| 1079 | +, Hash<c> |
| 1080 | +, Hash<d> |
| 1081 | +, Hash<e> |
| 1082 | +, Hash<f> |
| 1083 | +, Hash<g> { |
| 1084 | + fn hash(x) { |
| 1085 | + hash_combine( |
| 1086 | + hash_combine( |
| 1087 | + hash_combine( |
| 1088 | + hash_combine( |
| 1089 | + hash_combine( |
| 1090 | + hash_combine(hash_combine(0, hash(x.0)), hash(x.1)) |
| 1091 | + , hash(x.2) |
| 1092 | + ) |
| 1093 | + , hash(x.3) |
| 1094 | + ) |
| 1095 | + , hash(x.4) |
| 1096 | + ) |
| 1097 | + , hash(x.5) |
| 1098 | + ) |
| 1099 | + , hash(x.6) |
| 1100 | + ) |
| 1101 | + } |
| 747 | 1102 | } |
| 748 | 1103 | |
| 749 | | −impl Default<(a, b, c, d, e, f, g)> where Default<a>, Default<b>, Default<c>, Default<d>, Default<e>, Default<f>, Default<g> { |
| 750 | | − fn default() { (default(), default(), default(), default(), default(), default(), default()) } |
| 1104 | +impl Default<(a, b, c, d, e, f, g)> where Default<a> |
| 1105 | +, Default<b> |
| 1106 | +, Default<c> |
| 1107 | +, Default<d> |
| 1108 | +, Default<e> |
| 1109 | +, Default<f> |
| 1110 | +, Default<g> { |
| 1111 | + fn default() { |
| 1112 | + ( |
| 1113 | + default() |
| 1114 | + , default() |
| 1115 | + , default() |
| 1116 | + , default() |
| 1117 | + , default() |
| 1118 | + , default() |
| 1119 | + , default() |
| 1120 | + ) |
| 1121 | + } |
| 751 | 1122 | } |
| 752 | 1123 | |
| 753 | | −impl Eq<(a, b, c, d, e, f, g, h)> where Eq<a>, Eq<b>, Eq<c>, Eq<d>, Eq<e>, Eq<f>, Eq<g>, Eq<h> { |
| 754 | | − fn eq(x, y) { x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 && x.5 == y.5 && x.6 == y.6 && x.7 == y.7 } |
| 1124 | +impl Eq<(a, b, c, d, e, f, g, h)> where Eq<a> |
| 1125 | +, Eq<b> |
| 1126 | +, Eq<c> |
| 1127 | +, Eq<d> |
| 1128 | +, Eq<e> |
| 1129 | +, Eq<f> |
| 1130 | +, Eq<g> |
| 1131 | +, Eq<h> { |
| 1132 | + fn eq(x, y) { |
| 1133 | + x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 |
| 1134 | + && x.5 == y.5 |
| 1135 | + && x.6 == y.6 |
| 1136 | + && x.7 == y.7 |
| 1137 | + } |
| 755 | 1138 | } |
| 756 | 1139 | |
| 757 | | −impl Ord<(a, b, c, d, e, f, g, h)> where Ord<a>, Ord<b>, Ord<c>, Ord<d>, Ord<e>, Ord<f>, Ord<g>, Ord<h> { |
| 758 | | − fn compare(x, y) { compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) <> compare(x.3, y.3) <> compare(x.4, y.4) <> compare(x.5, y.5) <> compare(x.6, y.6) <> compare(x.7, y.7) } |
| 1140 | +impl Ord<(a, b, c, d, e, f, g, h)> where Ord<a> |
| 1141 | +, Ord<b> |
| 1142 | +, Ord<c> |
| 1143 | +, Ord<d> |
| 1144 | +, Ord<e> |
| 1145 | +, Ord<f> |
| 1146 | +, Ord<g> |
| 1147 | +, Ord<h> { |
| 1148 | + fn compare(x, y) { |
| 1149 | + compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) |
| 1150 | + <> compare(x.3, y.3) |
| 1151 | + <> compare(x.4, y.4) |
| 1152 | + <> compare(x.5, y.5) |
| 1153 | + <> compare(x.6, y.6) |
| 1154 | + <> compare(x.7, y.7) |
| 1155 | + } |
| 759 | 1156 | } |
| 760 | 1157 | |
| 761 | | −impl Show<(a, b, c, d, e, f, g, h)> where Show<a>, Show<b>, Show<c>, Show<d>, Show<e>, Show<f>, Show<g>, Show<h> { |
| 762 | | − fn show(x) { "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " <> show(x.3) <> ", " <> show(x.4) <> ", " <> show(x.5) <> ", " <> show(x.6) <> ", " <> show(x.7) <> ")" } |
| 1158 | +impl Show<(a, b, c, d, e, f, g, h)> where Show<a> |
| 1159 | +, Show<b> |
| 1160 | +, Show<c> |
| 1161 | +, Show<d> |
| 1162 | +, Show<e> |
| 1163 | +, Show<f> |
| 1164 | +, Show<g> |
| 1165 | +, Show<h> { |
| 1166 | + fn show(x) { |
| 1167 | + "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " |
| 1168 | + <> show(x.3) |
| 1169 | + <> ", " |
| 1170 | + <> show(x.4) |
| 1171 | + <> ", " |
| 1172 | + <> show(x.5) |
| 1173 | + <> ", " |
| 1174 | + <> show(x.6) |
| 1175 | + <> ", " |
| 1176 | + <> show(x.7) |
| 1177 | + <> ")" |
| 1178 | + } |
| 763 | 1179 | } |
| 764 | 1180 | |
| 765 | | −impl Debug<(a, b, c, d, e, f, g, h)> where Debug<a>, Debug<b>, Debug<c>, Debug<d>, Debug<e>, Debug<f>, Debug<g>, Debug<h> { |
| 766 | | − fn debug(x) { "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " <> debug(x.3) <> ", " <> debug(x.4) <> ", " <> debug(x.5) <> ", " <> debug(x.6) <> ", " <> debug(x.7) <> ")" } |
| 1181 | +impl Debug<(a, b, c, d, e, f, g, h)> where Debug<a> |
| 1182 | +, Debug<b> |
| 1183 | +, Debug<c> |
| 1184 | +, Debug<d> |
| 1185 | +, Debug<e> |
| 1186 | +, Debug<f> |
| 1187 | +, Debug<g> |
| 1188 | +, Debug<h> { |
| 1189 | + fn debug(x) { |
| 1190 | + "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " |
| 1191 | + <> debug(x.3) |
| 1192 | + <> ", " |
| 1193 | + <> debug(x.4) |
| 1194 | + <> ", " |
| 1195 | + <> debug(x.5) |
| 1196 | + <> ", " |
| 1197 | + <> debug(x.6) |
| 1198 | + <> ", " |
| 1199 | + <> debug(x.7) |
| 1200 | + <> ")" |
| 1201 | + } |
| 767 | 1202 | } |
| 768 | 1203 | |
| 769 | | −impl Hash<(a, b, c, d, e, f, g, h)> where Hash<a>, Hash<b>, Hash<c>, Hash<d>, Hash<e>, Hash<f>, Hash<g>, Hash<h> { |
| 770 | | − fn hash(x) { hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(0, hash(x.0)), hash(x.1)), hash(x.2)), hash(x.3)), hash(x.4)), hash(x.5)), hash(x.6)), hash(x.7)) } |
| 1204 | +impl Hash<(a, b, c, d, e, f, g, h)> where Hash<a> |
| 1205 | +, Hash<b> |
| 1206 | +, Hash<c> |
| 1207 | +, Hash<d> |
| 1208 | +, Hash<e> |
| 1209 | +, Hash<f> |
| 1210 | +, Hash<g> |
| 1211 | +, Hash<h> { |
| 1212 | + fn hash(x) { |
| 1213 | + hash_combine( |
| 1214 | + hash_combine( |
| 1215 | + hash_combine( |
| 1216 | + hash_combine( |
| 1217 | + hash_combine( |
| 1218 | + hash_combine( |
| 1219 | + hash_combine(hash_combine(0, hash(x.0)), hash(x.1)) |
| 1220 | + , hash(x.2) |
| 1221 | + ) |
| 1222 | + , hash(x.3) |
| 1223 | + ) |
| 1224 | + , hash(x.4) |
| 1225 | + ) |
| 1226 | + , hash(x.5) |
| 1227 | + ) |
| 1228 | + , hash(x.6) |
| 1229 | + ) |
| 1230 | + , hash(x.7) |
| 1231 | + ) |
| 1232 | + } |
| 771 | 1233 | } |
| 772 | 1234 | |
| 773 | | −impl Default<(a, b, c, d, e, f, g, h)> where Default<a>, Default<b>, Default<c>, Default<d>, Default<e>, Default<f>, Default<g>, Default<h> { |
| 774 | | − fn default() { (default(), default(), default(), default(), default(), default(), default(), default()) } |
| 1235 | +impl Default<(a, b, c, d, e, f, g, h)> where Default<a> |
| 1236 | +, Default<b> |
| 1237 | +, Default<c> |
| 1238 | +, Default<d> |
| 1239 | +, Default<e> |
| 1240 | +, Default<f> |
| 1241 | +, Default<g> |
| 1242 | +, Default<h> { |
| 1243 | + fn default() { |
| 1244 | + ( |
| 1245 | + default() |
| 1246 | + , default() |
| 1247 | + , default() |
| 1248 | + , default() |
| 1249 | + , default() |
| 1250 | + , default() |
| 1251 | + , default() |
| 1252 | + , default() |
| 1253 | + ) |
| 1254 | + } |
| 775 | 1255 | } |
| 776 | 1256 | |
| 777 | | −impl Eq<(a, b, c, d, e, f, g, h, i)> where Eq<a>, Eq<b>, Eq<c>, Eq<d>, Eq<e>, Eq<f>, Eq<g>, Eq<h>, Eq<i> { |
| 778 | | − fn eq(x, y) { x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 && x.5 == y.5 && x.6 == y.6 && x.7 == y.7 && x.8 == y.8 } |
| 1257 | +impl Eq<(a, b, c, d, e, f, g, h, i)> where Eq<a> |
| 1258 | +, Eq<b> |
| 1259 | +, Eq<c> |
| 1260 | +, Eq<d> |
| 1261 | +, Eq<e> |
| 1262 | +, Eq<f> |
| 1263 | +, Eq<g> |
| 1264 | +, Eq<h> |
| 1265 | +, Eq<i> { |
| 1266 | + fn eq(x, y) { |
| 1267 | + x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 |
| 1268 | + && x.5 == y.5 |
| 1269 | + && x.6 == y.6 |
| 1270 | + && x.7 == y.7 |
| 1271 | + && x.8 == y.8 |
| 1272 | + } |
| 779 | 1273 | } |
| 780 | 1274 | |
| 781 | | −impl Ord<(a, b, c, d, e, f, g, h, i)> where Ord<a>, Ord<b>, Ord<c>, Ord<d>, Ord<e>, Ord<f>, Ord<g>, Ord<h>, Ord<i> { |
| 782 | | − fn compare(x, y) { compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) <> compare(x.3, y.3) <> compare(x.4, y.4) <> compare(x.5, y.5) <> compare(x.6, y.6) <> compare(x.7, y.7) <> compare(x.8, y.8) } |
| 1275 | +impl Ord<(a, b, c, d, e, f, g, h, i)> where Ord<a> |
| 1276 | +, Ord<b> |
| 1277 | +, Ord<c> |
| 1278 | +, Ord<d> |
| 1279 | +, Ord<e> |
| 1280 | +, Ord<f> |
| 1281 | +, Ord<g> |
| 1282 | +, Ord<h> |
| 1283 | +, Ord<i> { |
| 1284 | + fn compare(x, y) { |
| 1285 | + compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) |
| 1286 | + <> compare(x.3, y.3) |
| 1287 | + <> compare(x.4, y.4) |
| 1288 | + <> compare(x.5, y.5) |
| 1289 | + <> compare(x.6, y.6) |
| 1290 | + <> compare(x.7, y.7) |
| 1291 | + <> compare(x.8, y.8) |
| 1292 | + } |
| 783 | 1293 | } |
| 784 | 1294 | |
| 785 | | −impl Show<(a, b, c, d, e, f, g, h, i)> where Show<a>, Show<b>, Show<c>, Show<d>, Show<e>, Show<f>, Show<g>, Show<h>, Show<i> { |
| 786 | | − fn show(x) { "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " <> show(x.3) <> ", " <> show(x.4) <> ", " <> show(x.5) <> ", " <> show(x.6) <> ", " <> show(x.7) <> ", " <> show(x.8) <> ")" } |
| 1295 | +impl Show<(a, b, c, d, e, f, g, h, i)> where Show<a> |
| 1296 | +, Show<b> |
| 1297 | +, Show<c> |
| 1298 | +, Show<d> |
| 1299 | +, Show<e> |
| 1300 | +, Show<f> |
| 1301 | +, Show<g> |
| 1302 | +, Show<h> |
| 1303 | +, Show<i> { |
| 1304 | + fn show(x) { |
| 1305 | + "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " |
| 1306 | + <> show(x.3) |
| 1307 | + <> ", " |
| 1308 | + <> show(x.4) |
| 1309 | + <> ", " |
| 1310 | + <> show(x.5) |
| 1311 | + <> ", " |
| 1312 | + <> show(x.6) |
| 1313 | + <> ", " |
| 1314 | + <> show(x.7) |
| 1315 | + <> ", " |
| 1316 | + <> show(x.8) |
| 1317 | + <> ")" |
| 1318 | + } |
| 787 | 1319 | } |
| 788 | 1320 | |
| 789 | | −impl Debug<(a, b, c, d, e, f, g, h, i)> where Debug<a>, Debug<b>, Debug<c>, Debug<d>, Debug<e>, Debug<f>, Debug<g>, Debug<h>, Debug<i> { |
| 790 | | − fn debug(x) { "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " <> debug(x.3) <> ", " <> debug(x.4) <> ", " <> debug(x.5) <> ", " <> debug(x.6) <> ", " <> debug(x.7) <> ", " <> debug(x.8) <> ")" } |
| 1321 | +impl Debug<(a, b, c, d, e, f, g, h, i)> where Debug<a> |
| 1322 | +, Debug<b> |
| 1323 | +, Debug<c> |
| 1324 | +, Debug<d> |
| 1325 | +, Debug<e> |
| 1326 | +, Debug<f> |
| 1327 | +, Debug<g> |
| 1328 | +, Debug<h> |
| 1329 | +, Debug<i> { |
| 1330 | + fn debug(x) { |
| 1331 | + "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " |
| 1332 | + <> debug(x.3) |
| 1333 | + <> ", " |
| 1334 | + <> debug(x.4) |
| 1335 | + <> ", " |
| 1336 | + <> debug(x.5) |
| 1337 | + <> ", " |
| 1338 | + <> debug(x.6) |
| 1339 | + <> ", " |
| 1340 | + <> debug(x.7) |
| 1341 | + <> ", " |
| 1342 | + <> debug(x.8) |
| 1343 | + <> ")" |
| 1344 | + } |
| 791 | 1345 | } |
| 792 | 1346 | |
| 793 | | −impl Hash<(a, b, c, d, e, f, g, h, i)> where Hash<a>, Hash<b>, Hash<c>, Hash<d>, Hash<e>, Hash<f>, Hash<g>, Hash<h>, Hash<i> { |
| 794 | | − fn hash(x) { hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(0, hash(x.0)), hash(x.1)), hash(x.2)), hash(x.3)), hash(x.4)), hash(x.5)), hash(x.6)), hash(x.7)), hash(x.8)) } |
| 1347 | +impl Hash<(a, b, c, d, e, f, g, h, i)> where Hash<a> |
| 1348 | +, Hash<b> |
| 1349 | +, Hash<c> |
| 1350 | +, Hash<d> |
| 1351 | +, Hash<e> |
| 1352 | +, Hash<f> |
| 1353 | +, Hash<g> |
| 1354 | +, Hash<h> |
| 1355 | +, Hash<i> { |
| 1356 | + fn hash(x) { |
| 1357 | + hash_combine( |
| 1358 | + hash_combine( |
| 1359 | + hash_combine( |
| 1360 | + hash_combine( |
| 1361 | + hash_combine( |
| 1362 | + hash_combine( |
| 1363 | + hash_combine( |
| 1364 | + hash_combine(hash_combine(0, hash(x.0)), hash(x.1)) |
| 1365 | + , hash(x.2) |
| 1366 | + ) |
| 1367 | + , hash(x.3) |
| 1368 | + ) |
| 1369 | + , hash(x.4) |
| 1370 | + ) |
| 1371 | + , hash(x.5) |
| 1372 | + ) |
| 1373 | + , hash(x.6) |
| 1374 | + ) |
| 1375 | + , hash(x.7) |
| 1376 | + ) |
| 1377 | + , hash(x.8) |
| 1378 | + ) |
| 1379 | + } |
| 795 | 1380 | } |
| 796 | 1381 | |
| 797 | | −impl Default<(a, b, c, d, e, f, g, h, i)> where Default<a>, Default<b>, Default<c>, Default<d>, Default<e>, Default<f>, Default<g>, Default<h>, Default<i> { |
| 798 | | − fn default() { (default(), default(), default(), default(), default(), default(), default(), default(), default()) } |
| 1382 | +impl Default<(a, b, c, d, e, f, g, h, i)> where Default<a> |
| 1383 | +, Default<b> |
| 1384 | +, Default<c> |
| 1385 | +, Default<d> |
| 1386 | +, Default<e> |
| 1387 | +, Default<f> |
| 1388 | +, Default<g> |
| 1389 | +, Default<h> |
| 1390 | +, Default<i> { |
| 1391 | + fn default() { |
| 1392 | + ( |
| 1393 | + default() |
| 1394 | + , default() |
| 1395 | + , default() |
| 1396 | + , default() |
| 1397 | + , default() |
| 1398 | + , default() |
| 1399 | + , default() |
| 1400 | + , default() |
| 1401 | + , default() |
| 1402 | + ) |
| 1403 | + } |
| 799 | 1404 | } |
| 800 | 1405 | |
| 801 | | −impl Eq<(a, b, c, d, e, f, g, h, i, j)> where Eq<a>, Eq<b>, Eq<c>, Eq<d>, Eq<e>, Eq<f>, Eq<g>, Eq<h>, Eq<i>, Eq<j> { |
| 802 | | − fn eq(x, y) { x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 && x.5 == y.5 && x.6 == y.6 && x.7 == y.7 && x.8 == y.8 && x.9 == y.9 } |
| 1406 | +impl Eq<(a, b, c, d, e, f, g, h, i, j)> where Eq<a> |
| 1407 | +, Eq<b> |
| 1408 | +, Eq<c> |
| 1409 | +, Eq<d> |
| 1410 | +, Eq<e> |
| 1411 | +, Eq<f> |
| 1412 | +, Eq<g> |
| 1413 | +, Eq<h> |
| 1414 | +, Eq<i> |
| 1415 | +, Eq<j> { |
| 1416 | + fn eq(x, y) { |
| 1417 | + x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 |
| 1418 | + && x.5 == y.5 |
| 1419 | + && x.6 == y.6 |
| 1420 | + && x.7 == y.7 |
| 1421 | + && x.8 == y.8 |
| 1422 | + && x.9 == y.9 |
| 1423 | + } |
| 803 | 1424 | } |
| 804 | 1425 | |
| 805 | | −impl Ord<(a, b, c, d, e, f, g, h, i, j)> where Ord<a>, Ord<b>, Ord<c>, Ord<d>, Ord<e>, Ord<f>, Ord<g>, Ord<h>, Ord<i>, Ord<j> { |
| 806 | | − fn compare(x, y) { compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) <> compare(x.3, y.3) <> compare(x.4, y.4) <> compare(x.5, y.5) <> compare(x.6, y.6) <> compare(x.7, y.7) <> compare(x.8, y.8) <> compare(x.9, y.9) } |
| 1426 | +impl Ord<(a, b, c, d, e, f, g, h, i, j)> where Ord<a> |
| 1427 | +, Ord<b> |
| 1428 | +, Ord<c> |
| 1429 | +, Ord<d> |
| 1430 | +, Ord<e> |
| 1431 | +, Ord<f> |
| 1432 | +, Ord<g> |
| 1433 | +, Ord<h> |
| 1434 | +, Ord<i> |
| 1435 | +, Ord<j> { |
| 1436 | + fn compare(x, y) { |
| 1437 | + compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) |
| 1438 | + <> compare(x.3, y.3) |
| 1439 | + <> compare(x.4, y.4) |
| 1440 | + <> compare(x.5, y.5) |
| 1441 | + <> compare(x.6, y.6) |
| 1442 | + <> compare(x.7, y.7) |
| 1443 | + <> compare(x.8, y.8) |
| 1444 | + <> compare(x.9, y.9) |
| 1445 | + } |
| 807 | 1446 | } |
| 808 | 1447 | |
| 809 | | −impl Show<(a, b, c, d, e, f, g, h, i, j)> where Show<a>, Show<b>, Show<c>, Show<d>, Show<e>, Show<f>, Show<g>, Show<h>, Show<i>, Show<j> { |
| 810 | | − fn show(x) { "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " <> show(x.3) <> ", " <> show(x.4) <> ", " <> show(x.5) <> ", " <> show(x.6) <> ", " <> show(x.7) <> ", " <> show(x.8) <> ", " <> show(x.9) <> ")" } |
| 1448 | +impl Show<(a, b, c, d, e, f, g, h, i, j)> where Show<a> |
| 1449 | +, Show<b> |
| 1450 | +, Show<c> |
| 1451 | +, Show<d> |
| 1452 | +, Show<e> |
| 1453 | +, Show<f> |
| 1454 | +, Show<g> |
| 1455 | +, Show<h> |
| 1456 | +, Show<i> |
| 1457 | +, Show<j> { |
| 1458 | + fn show(x) { |
| 1459 | + "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " |
| 1460 | + <> show(x.3) |
| 1461 | + <> ", " |
| 1462 | + <> show(x.4) |
| 1463 | + <> ", " |
| 1464 | + <> show(x.5) |
| 1465 | + <> ", " |
| 1466 | + <> show(x.6) |
| 1467 | + <> ", " |
| 1468 | + <> show(x.7) |
| 1469 | + <> ", " |
| 1470 | + <> show(x.8) |
| 1471 | + <> ", " |
| 1472 | + <> show(x.9) |
| 1473 | + <> ")" |
| 1474 | + } |
| 811 | 1475 | } |
| 812 | 1476 | |
| 813 | | −impl Debug<(a, b, c, d, e, f, g, h, i, j)> where Debug<a>, Debug<b>, Debug<c>, Debug<d>, Debug<e>, Debug<f>, Debug<g>, Debug<h>, Debug<i>, Debug<j> { |
| 814 | | − fn debug(x) { "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " <> debug(x.3) <> ", " <> debug(x.4) <> ", " <> debug(x.5) <> ", " <> debug(x.6) <> ", " <> debug(x.7) <> ", " <> debug(x.8) <> ", " <> debug(x.9) <> ")" } |
| 1477 | +impl Debug<(a, b, c, d, e, f, g, h, i, j)> where Debug<a> |
| 1478 | +, Debug<b> |
| 1479 | +, Debug<c> |
| 1480 | +, Debug<d> |
| 1481 | +, Debug<e> |
| 1482 | +, Debug<f> |
| 1483 | +, Debug<g> |
| 1484 | +, Debug<h> |
| 1485 | +, Debug<i> |
| 1486 | +, Debug<j> { |
| 1487 | + fn debug(x) { |
| 1488 | + "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " |
| 1489 | + <> debug(x.3) |
| 1490 | + <> ", " |
| 1491 | + <> debug(x.4) |
| 1492 | + <> ", " |
| 1493 | + <> debug(x.5) |
| 1494 | + <> ", " |
| 1495 | + <> debug(x.6) |
| 1496 | + <> ", " |
| 1497 | + <> debug(x.7) |
| 1498 | + <> ", " |
| 1499 | + <> debug(x.8) |
| 1500 | + <> ", " |
| 1501 | + <> debug(x.9) |
| 1502 | + <> ")" |
| 1503 | + } |
| 815 | 1504 | } |
| 816 | 1505 | |
| 817 | | −impl Hash<(a, b, c, d, e, f, g, h, i, j)> where Hash<a>, Hash<b>, Hash<c>, Hash<d>, Hash<e>, Hash<f>, Hash<g>, Hash<h>, Hash<i>, Hash<j> { |
| 818 | | − fn hash(x) { hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(0, hash(x.0)), hash(x.1)), hash(x.2)), hash(x.3)), hash(x.4)), hash(x.5)), hash(x.6)), hash(x.7)), hash(x.8)), hash(x.9)) } |
| 1506 | +impl Hash<(a, b, c, d, e, f, g, h, i, j)> where Hash<a> |
| 1507 | +, Hash<b> |
| 1508 | +, Hash<c> |
| 1509 | +, Hash<d> |
| 1510 | +, Hash<e> |
| 1511 | +, Hash<f> |
| 1512 | +, Hash<g> |
| 1513 | +, Hash<h> |
| 1514 | +, Hash<i> |
| 1515 | +, Hash<j> { |
| 1516 | + fn hash(x) { |
| 1517 | + hash_combine( |
| 1518 | + hash_combine( |
| 1519 | + hash_combine( |
| 1520 | + hash_combine( |
| 1521 | + hash_combine( |
| 1522 | + hash_combine( |
| 1523 | + hash_combine( |
| 1524 | + hash_combine( |
| 1525 | + hash_combine(hash_combine(0, hash(x.0)), hash(x.1)) |
| 1526 | + , hash(x.2) |
| 1527 | + ) |
| 1528 | + , hash(x.3) |
| 1529 | + ) |
| 1530 | + , hash(x.4) |
| 1531 | + ) |
| 1532 | + , hash(x.5) |
| 1533 | + ) |
| 1534 | + , hash(x.6) |
| 1535 | + ) |
| 1536 | + , hash(x.7) |
| 1537 | + ) |
| 1538 | + , hash(x.8) |
| 1539 | + ) |
| 1540 | + , hash(x.9) |
| 1541 | + ) |
| 1542 | + } |
| 819 | 1543 | } |
| 820 | 1544 | |
| 821 | | −impl Default<(a, b, c, d, e, f, g, h, i, j)> where Default<a>, Default<b>, Default<c>, Default<d>, Default<e>, Default<f>, Default<g>, Default<h>, Default<i>, Default<j> { |
| 822 | | − fn default() { (default(), default(), default(), default(), default(), default(), default(), default(), default(), default()) } |
| 1545 | +impl Default<(a, b, c, d, e, f, g, h, i, j)> where Default<a> |
| 1546 | +, Default<b> |
| 1547 | +, Default<c> |
| 1548 | +, Default<d> |
| 1549 | +, Default<e> |
| 1550 | +, Default<f> |
| 1551 | +, Default<g> |
| 1552 | +, Default<h> |
| 1553 | +, Default<i> |
| 1554 | +, Default<j> { |
| 1555 | + fn default() { |
| 1556 | + ( |
| 1557 | + default() |
| 1558 | + , default() |
| 1559 | + , default() |
| 1560 | + , default() |
| 1561 | + , default() |
| 1562 | + , default() |
| 1563 | + , default() |
| 1564 | + , default() |
| 1565 | + , default() |
| 1566 | + , default() |
| 1567 | + ) |
| 1568 | + } |
| 823 | 1569 | } |
| 824 | 1570 | |
| 825 | | −impl Eq<(a, b, c, d, e, f, g, h, i, j, k)> where Eq<a>, Eq<b>, Eq<c>, Eq<d>, Eq<e>, Eq<f>, Eq<g>, Eq<h>, Eq<i>, Eq<j>, Eq<k> { |
| 826 | | − fn eq(x, y) { x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 && x.5 == y.5 && x.6 == y.6 && x.7 == y.7 && x.8 == y.8 && x.9 == y.9 && x.10 == y.10 } |
| 1571 | +impl Eq<(a, b, c, d, e, f, g, h, i, j, k)> where Eq<a> |
| 1572 | +, Eq<b> |
| 1573 | +, Eq<c> |
| 1574 | +, Eq<d> |
| 1575 | +, Eq<e> |
| 1576 | +, Eq<f> |
| 1577 | +, Eq<g> |
| 1578 | +, Eq<h> |
| 1579 | +, Eq<i> |
| 1580 | +, Eq<j> |
| 1581 | +, Eq<k> { |
| 1582 | + fn eq(x, y) { |
| 1583 | + x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 |
| 1584 | + && x.5 == y.5 |
| 1585 | + && x.6 == y.6 |
| 1586 | + && x.7 == y.7 |
| 1587 | + && x.8 == y.8 |
| 1588 | + && x.9 == y.9 |
| 1589 | + && x.10 == y.10 |
| 1590 | + } |
| 827 | 1591 | } |
| 828 | 1592 | |
| 829 | | −impl Ord<(a, b, c, d, e, f, g, h, i, j, k)> where Ord<a>, Ord<b>, Ord<c>, Ord<d>, Ord<e>, Ord<f>, Ord<g>, Ord<h>, Ord<i>, Ord<j>, Ord<k> { |
| 830 | | − fn compare(x, y) { compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) <> compare(x.3, y.3) <> compare(x.4, y.4) <> compare(x.5, y.5) <> compare(x.6, y.6) <> compare(x.7, y.7) <> compare(x.8, y.8) <> compare(x.9, y.9) <> compare(x.10, y.10) } |
| 1593 | +impl Ord<(a, b, c, d, e, f, g, h, i, j, k)> where Ord<a> |
| 1594 | +, Ord<b> |
| 1595 | +, Ord<c> |
| 1596 | +, Ord<d> |
| 1597 | +, Ord<e> |
| 1598 | +, Ord<f> |
| 1599 | +, Ord<g> |
| 1600 | +, Ord<h> |
| 1601 | +, Ord<i> |
| 1602 | +, Ord<j> |
| 1603 | +, Ord<k> { |
| 1604 | + fn compare(x, y) { |
| 1605 | + compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) |
| 1606 | + <> compare(x.3, y.3) |
| 1607 | + <> compare(x.4, y.4) |
| 1608 | + <> compare(x.5, y.5) |
| 1609 | + <> compare(x.6, y.6) |
| 1610 | + <> compare(x.7, y.7) |
| 1611 | + <> compare(x.8, y.8) |
| 1612 | + <> compare(x.9, y.9) |
| 1613 | + <> compare(x.10, y.10) |
| 1614 | + } |
| 831 | 1615 | } |
| 832 | 1616 | |
| 833 | | −impl Show<(a, b, c, d, e, f, g, h, i, j, k)> where Show<a>, Show<b>, Show<c>, Show<d>, Show<e>, Show<f>, Show<g>, Show<h>, Show<i>, Show<j>, Show<k> { |
| 834 | | − fn show(x) { "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " <> show(x.3) <> ", " <> show(x.4) <> ", " <> show(x.5) <> ", " <> show(x.6) <> ", " <> show(x.7) <> ", " <> show(x.8) <> ", " <> show(x.9) <> ", " <> show(x.10) <> ")" } |
| 1617 | +impl Show<(a, b, c, d, e, f, g, h, i, j, k)> where Show<a> |
| 1618 | +, Show<b> |
| 1619 | +, Show<c> |
| 1620 | +, Show<d> |
| 1621 | +, Show<e> |
| 1622 | +, Show<f> |
| 1623 | +, Show<g> |
| 1624 | +, Show<h> |
| 1625 | +, Show<i> |
| 1626 | +, Show<j> |
| 1627 | +, Show<k> { |
| 1628 | + fn show(x) { |
| 1629 | + "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " |
| 1630 | + <> show(x.3) |
| 1631 | + <> ", " |
| 1632 | + <> show(x.4) |
| 1633 | + <> ", " |
| 1634 | + <> show(x.5) |
| 1635 | + <> ", " |
| 1636 | + <> show(x.6) |
| 1637 | + <> ", " |
| 1638 | + <> show(x.7) |
| 1639 | + <> ", " |
| 1640 | + <> show(x.8) |
| 1641 | + <> ", " |
| 1642 | + <> show(x.9) |
| 1643 | + <> ", " |
| 1644 | + <> show(x.10) |
| 1645 | + <> ")" |
| 1646 | + } |
| 835 | 1647 | } |
| 836 | 1648 | |
| 837 | | −impl Debug<(a, b, c, d, e, f, g, h, i, j, k)> where Debug<a>, Debug<b>, Debug<c>, Debug<d>, Debug<e>, Debug<f>, Debug<g>, Debug<h>, Debug<i>, Debug<j>, Debug<k> { |
| 838 | | − fn debug(x) { "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " <> debug(x.3) <> ", " <> debug(x.4) <> ", " <> debug(x.5) <> ", " <> debug(x.6) <> ", " <> debug(x.7) <> ", " <> debug(x.8) <> ", " <> debug(x.9) <> ", " <> debug(x.10) <> ")" } |
| 1649 | +impl Debug<(a, b, c, d, e, f, g, h, i, j, k)> where Debug<a> |
| 1650 | +, Debug<b> |
| 1651 | +, Debug<c> |
| 1652 | +, Debug<d> |
| 1653 | +, Debug<e> |
| 1654 | +, Debug<f> |
| 1655 | +, Debug<g> |
| 1656 | +, Debug<h> |
| 1657 | +, Debug<i> |
| 1658 | +, Debug<j> |
| 1659 | +, Debug<k> { |
| 1660 | + fn debug(x) { |
| 1661 | + "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " |
| 1662 | + <> debug(x.3) |
| 1663 | + <> ", " |
| 1664 | + <> debug(x.4) |
| 1665 | + <> ", " |
| 1666 | + <> debug(x.5) |
| 1667 | + <> ", " |
| 1668 | + <> debug(x.6) |
| 1669 | + <> ", " |
| 1670 | + <> debug(x.7) |
| 1671 | + <> ", " |
| 1672 | + <> debug(x.8) |
| 1673 | + <> ", " |
| 1674 | + <> debug(x.9) |
| 1675 | + <> ", " |
| 1676 | + <> debug(x.10) |
| 1677 | + <> ")" |
| 1678 | + } |
| 839 | 1679 | } |
| 840 | 1680 | |
| 841 | | −impl Hash<(a, b, c, d, e, f, g, h, i, j, k)> where Hash<a>, Hash<b>, Hash<c>, Hash<d>, Hash<e>, Hash<f>, Hash<g>, Hash<h>, Hash<i>, Hash<j>, Hash<k> { |
| 842 | | − fn hash(x) { hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(0, hash(x.0)), hash(x.1)), hash(x.2)), hash(x.3)), hash(x.4)), hash(x.5)), hash(x.6)), hash(x.7)), hash(x.8)), hash(x.9)), hash(x.10)) } |
| 1681 | +impl Hash<(a, b, c, d, e, f, g, h, i, j, k)> where Hash<a> |
| 1682 | +, Hash<b> |
| 1683 | +, Hash<c> |
| 1684 | +, Hash<d> |
| 1685 | +, Hash<e> |
| 1686 | +, Hash<f> |
| 1687 | +, Hash<g> |
| 1688 | +, Hash<h> |
| 1689 | +, Hash<i> |
| 1690 | +, Hash<j> |
| 1691 | +, Hash<k> { |
| 1692 | + fn hash(x) { |
| 1693 | + hash_combine( |
| 1694 | + hash_combine( |
| 1695 | + hash_combine( |
| 1696 | + hash_combine( |
| 1697 | + hash_combine( |
| 1698 | + hash_combine( |
| 1699 | + hash_combine( |
| 1700 | + hash_combine( |
| 1701 | + hash_combine( |
| 1702 | + hash_combine(hash_combine(0, hash(x.0)), hash(x.1)) |
| 1703 | + , hash(x.2) |
| 1704 | + ) |
| 1705 | + , hash(x.3) |
| 1706 | + ) |
| 1707 | + , hash(x.4) |
| 1708 | + ) |
| 1709 | + , hash(x.5) |
| 1710 | + ) |
| 1711 | + , hash(x.6) |
| 1712 | + ) |
| 1713 | + , hash(x.7) |
| 1714 | + ) |
| 1715 | + , hash(x.8) |
| 1716 | + ) |
| 1717 | + , hash(x.9) |
| 1718 | + ) |
| 1719 | + , hash(x.10) |
| 1720 | + ) |
| 1721 | + } |
| 843 | 1722 | } |
| 844 | 1723 | |
| 845 | | −impl Default<(a, b, c, d, e, f, g, h, i, j, k)> where Default<a>, Default<b>, Default<c>, Default<d>, Default<e>, Default<f>, Default<g>, Default<h>, Default<i>, Default<j>, Default<k> { |
| 846 | | − fn default() { (default(), default(), default(), default(), default(), default(), default(), default(), default(), default(), default()) } |
| 1724 | +impl Default<(a, b, c, d, e, f, g, h, i, j, k)> where Default<a> |
| 1725 | +, Default<b> |
| 1726 | +, Default<c> |
| 1727 | +, Default<d> |
| 1728 | +, Default<e> |
| 1729 | +, Default<f> |
| 1730 | +, Default<g> |
| 1731 | +, Default<h> |
| 1732 | +, Default<i> |
| 1733 | +, Default<j> |
| 1734 | +, Default<k> { |
| 1735 | + fn default() { |
| 1736 | + ( |
| 1737 | + default() |
| 1738 | + , default() |
| 1739 | + , default() |
| 1740 | + , default() |
| 1741 | + , default() |
| 1742 | + , default() |
| 1743 | + , default() |
| 1744 | + , default() |
| 1745 | + , default() |
| 1746 | + , default() |
| 1747 | + , default() |
| 1748 | + ) |
| 1749 | + } |
| 847 | 1750 | } |
| 848 | 1751 | |
| 849 | | −impl Eq<(a, b, c, d, e, f, g, h, i, j, k, l)> where Eq<a>, Eq<b>, Eq<c>, Eq<d>, Eq<e>, Eq<f>, Eq<g>, Eq<h>, Eq<i>, Eq<j>, Eq<k>, Eq<l> { |
| 850 | | − fn eq(x, y) { x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 && x.5 == y.5 && x.6 == y.6 && x.7 == y.7 && x.8 == y.8 && x.9 == y.9 && x.10 == y.10 && x.11 == y.11 } |
| 1752 | +impl Eq<(a, b, c, d, e, f, g, h, i, j, k, l)> where Eq<a> |
| 1753 | +, Eq<b> |
| 1754 | +, Eq<c> |
| 1755 | +, Eq<d> |
| 1756 | +, Eq<e> |
| 1757 | +, Eq<f> |
| 1758 | +, Eq<g> |
| 1759 | +, Eq<h> |
| 1760 | +, Eq<i> |
| 1761 | +, Eq<j> |
| 1762 | +, Eq<k> |
| 1763 | +, Eq<l> { |
| 1764 | + fn eq(x, y) { |
| 1765 | + x.0 == y.0 && x.1 == y.1 && x.2 == y.2 && x.3 == y.3 && x.4 == y.4 |
| 1766 | + && x.5 == y.5 |
| 1767 | + && x.6 == y.6 |
| 1768 | + && x.7 == y.7 |
| 1769 | + && x.8 == y.8 |
| 1770 | + && x.9 == y.9 |
| 1771 | + && x.10 == y.10 |
| 1772 | + && x.11 == y.11 |
| 1773 | + } |
| 851 | 1774 | } |
| 852 | 1775 | |
| 853 | | −impl Ord<(a, b, c, d, e, f, g, h, i, j, k, l)> where Ord<a>, Ord<b>, Ord<c>, Ord<d>, Ord<e>, Ord<f>, Ord<g>, Ord<h>, Ord<i>, Ord<j>, Ord<k>, Ord<l> { |
| 854 | | − fn compare(x, y) { compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) <> compare(x.3, y.3) <> compare(x.4, y.4) <> compare(x.5, y.5) <> compare(x.6, y.6) <> compare(x.7, y.7) <> compare(x.8, y.8) <> compare(x.9, y.9) <> compare(x.10, y.10) <> compare(x.11, y.11) } |
| 1776 | +impl Ord<(a, b, c, d, e, f, g, h, i, j, k, l)> where Ord<a> |
| 1777 | +, Ord<b> |
| 1778 | +, Ord<c> |
| 1779 | +, Ord<d> |
| 1780 | +, Ord<e> |
| 1781 | +, Ord<f> |
| 1782 | +, Ord<g> |
| 1783 | +, Ord<h> |
| 1784 | +, Ord<i> |
| 1785 | +, Ord<j> |
| 1786 | +, Ord<k> |
| 1787 | +, Ord<l> { |
| 1788 | + fn compare(x, y) { |
| 1789 | + compare(x.0, y.0) <> compare(x.1, y.1) <> compare(x.2, y.2) |
| 1790 | + <> compare(x.3, y.3) |
| 1791 | + <> compare(x.4, y.4) |
| 1792 | + <> compare(x.5, y.5) |
| 1793 | + <> compare(x.6, y.6) |
| 1794 | + <> compare(x.7, y.7) |
| 1795 | + <> compare(x.8, y.8) |
| 1796 | + <> compare(x.9, y.9) |
| 1797 | + <> compare(x.10, y.10) |
| 1798 | + <> compare(x.11, y.11) |
| 1799 | + } |
| 855 | 1800 | } |
| 856 | 1801 | |
| 857 | | −impl Show<(a, b, c, d, e, f, g, h, i, j, k, l)> where Show<a>, Show<b>, Show<c>, Show<d>, Show<e>, Show<f>, Show<g>, Show<h>, Show<i>, Show<j>, Show<k>, Show<l> { |
| 858 | | − fn show(x) { "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " <> show(x.3) <> ", " <> show(x.4) <> ", " <> show(x.5) <> ", " <> show(x.6) <> ", " <> show(x.7) <> ", " <> show(x.8) <> ", " <> show(x.9) <> ", " <> show(x.10) <> ", " <> show(x.11) <> ")" } |
| 1802 | +impl Show<(a, b, c, d, e, f, g, h, i, j, k, l)> where Show<a> |
| 1803 | +, Show<b> |
| 1804 | +, Show<c> |
| 1805 | +, Show<d> |
| 1806 | +, Show<e> |
| 1807 | +, Show<f> |
| 1808 | +, Show<g> |
| 1809 | +, Show<h> |
| 1810 | +, Show<i> |
| 1811 | +, Show<j> |
| 1812 | +, Show<k> |
| 1813 | +, Show<l> { |
| 1814 | + fn show(x) { |
| 1815 | + "(" <> show(x.0) <> ", " <> show(x.1) <> ", " <> show(x.2) <> ", " |
| 1816 | + <> show(x.3) |
| 1817 | + <> ", " |
| 1818 | + <> show(x.4) |
| 1819 | + <> ", " |
| 1820 | + <> show(x.5) |
| 1821 | + <> ", " |
| 1822 | + <> show(x.6) |
| 1823 | + <> ", " |
| 1824 | + <> show(x.7) |
| 1825 | + <> ", " |
| 1826 | + <> show(x.8) |
| 1827 | + <> ", " |
| 1828 | + <> show(x.9) |
| 1829 | + <> ", " |
| 1830 | + <> show(x.10) |
| 1831 | + <> ", " |
| 1832 | + <> show(x.11) |
| 1833 | + <> ")" |
| 1834 | + } |
| 859 | 1835 | } |
| 860 | 1836 | |
| 861 | | −impl Debug<(a, b, c, d, e, f, g, h, i, j, k, l)> where Debug<a>, Debug<b>, Debug<c>, Debug<d>, Debug<e>, Debug<f>, Debug<g>, Debug<h>, Debug<i>, Debug<j>, Debug<k>, Debug<l> { |
| 862 | | − fn debug(x) { "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " <> debug(x.3) <> ", " <> debug(x.4) <> ", " <> debug(x.5) <> ", " <> debug(x.6) <> ", " <> debug(x.7) <> ", " <> debug(x.8) <> ", " <> debug(x.9) <> ", " <> debug(x.10) <> ", " <> debug(x.11) <> ")" } |
| 1837 | +impl Debug<(a, b, c, d, e, f, g, h, i, j, k, l)> where Debug<a> |
| 1838 | +, Debug<b> |
| 1839 | +, Debug<c> |
| 1840 | +, Debug<d> |
| 1841 | +, Debug<e> |
| 1842 | +, Debug<f> |
| 1843 | +, Debug<g> |
| 1844 | +, Debug<h> |
| 1845 | +, Debug<i> |
| 1846 | +, Debug<j> |
| 1847 | +, Debug<k> |
| 1848 | +, Debug<l> { |
| 1849 | + fn debug(x) { |
| 1850 | + "(" <> debug(x.0) <> ", " <> debug(x.1) <> ", " <> debug(x.2) <> ", " |
| 1851 | + <> debug(x.3) |
| 1852 | + <> ", " |
| 1853 | + <> debug(x.4) |
| 1854 | + <> ", " |
| 1855 | + <> debug(x.5) |
| 1856 | + <> ", " |
| 1857 | + <> debug(x.6) |
| 1858 | + <> ", " |
| 1859 | + <> debug(x.7) |
| 1860 | + <> ", " |
| 1861 | + <> debug(x.8) |
| 1862 | + <> ", " |
| 1863 | + <> debug(x.9) |
| 1864 | + <> ", " |
| 1865 | + <> debug(x.10) |
| 1866 | + <> ", " |
| 1867 | + <> debug(x.11) |
| 1868 | + <> ")" |
| 1869 | + } |
| 863 | 1870 | } |
| 864 | 1871 | |
| 865 | | −impl Hash<(a, b, c, d, e, f, g, h, i, j, k, l)> where Hash<a>, Hash<b>, Hash<c>, Hash<d>, Hash<e>, Hash<f>, Hash<g>, Hash<h>, Hash<i>, Hash<j>, Hash<k>, Hash<l> { |
| 866 | | − fn hash(x) { hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(hash_combine(0, hash(x.0)), hash(x.1)), hash(x.2)), hash(x.3)), hash(x.4)), hash(x.5)), hash(x.6)), hash(x.7)), hash(x.8)), hash(x.9)), hash(x.10)), hash(x.11)) } |
| 1872 | +impl Hash<(a, b, c, d, e, f, g, h, i, j, k, l)> where Hash<a> |
| 1873 | +, Hash<b> |
| 1874 | +, Hash<c> |
| 1875 | +, Hash<d> |
| 1876 | +, Hash<e> |
| 1877 | +, Hash<f> |
| 1878 | +, Hash<g> |
| 1879 | +, Hash<h> |
| 1880 | +, Hash<i> |
| 1881 | +, Hash<j> |
| 1882 | +, Hash<k> |
| 1883 | +, Hash<l> { |
| 1884 | + fn hash(x) { |
| 1885 | + hash_combine( |
| 1886 | + hash_combine( |
| 1887 | + hash_combine( |
| 1888 | + hash_combine( |
| 1889 | + hash_combine( |
| 1890 | + hash_combine( |
| 1891 | + hash_combine( |
| 1892 | + hash_combine( |
| 1893 | + hash_combine( |
| 1894 | + hash_combine( |
| 1895 | + hash_combine(hash_combine(0, hash(x.0)), hash(x.1)) |
| 1896 | + , hash(x.2) |
| 1897 | + ) |
| 1898 | + , hash(x.3) |
| 1899 | + ) |
| 1900 | + , hash(x.4) |
| 1901 | + ) |
| 1902 | + , hash(x.5) |
| 1903 | + ) |
| 1904 | + , hash(x.6) |
| 1905 | + ) |
| 1906 | + , hash(x.7) |
| 1907 | + ) |
| 1908 | + , hash(x.8) |
| 1909 | + ) |
| 1910 | + , hash(x.9) |
| 1911 | + ) |
| 1912 | + , hash(x.10) |
| 1913 | + ) |
| 1914 | + , hash(x.11) |
| 1915 | + ) |
| 1916 | + } |
| 867 | 1917 | } |
| 868 | 1918 | |
| 869 | | −impl Default<(a, b, c, d, e, f, g, h, i, j, k, l)> where Default<a>, Default<b>, Default<c>, Default<d>, Default<e>, Default<f>, Default<g>, Default<h>, Default<i>, Default<j>, Default<k>, Default<l> { |
| 870 | | − fn default() { (default(), default(), default(), default(), default(), default(), default(), default(), default(), default(), default(), default()) } |
| 1919 | +impl Default<(a, b, c, d, e, f, g, h, i, j, k, l)> where Default<a> |
| 1920 | +, Default<b> |
| 1921 | +, Default<c> |
| 1922 | +, Default<d> |
| 1923 | +, Default<e> |
| 1924 | +, Default<f> |
| 1925 | +, Default<g> |
| 1926 | +, Default<h> |
| 1927 | +, Default<i> |
| 1928 | +, Default<j> |
| 1929 | +, Default<k> |
| 1930 | +, Default<l> { |
| 1931 | + fn default() { |
| 1932 | + ( |
| 1933 | + default() |
| 1934 | + , default() |
| 1935 | + , default() |
| 1936 | + , default() |
| 1937 | + , default() |
| 1938 | + , default() |
| 1939 | + , default() |
| 1940 | + , default() |
| 1941 | + , default() |
| 1942 | + , default() |
| 1943 | + , default() |
| 1944 | + , default() |
| 1945 | + ) |
| 1946 | + } |
| 871 | 1947 | } |
| 872 | 1948 | // --- end of the generated tuple impls --- |