about summary refs log tree commit diff
path: root/library/core/src/array/equality.rs
AgeCommit message (Collapse)AuthorLines
2025-09-12Constify Eq, Ord, PartialOrdEvgenii Zheltonozhskii-17/+29
2025-08-03Use `as_array` in PartialEq for arraysScott McMurray-16/+12
2024-03-25Import the 2021 prelude in the core crateDaniel Paoliello-1/+0
2024-01-26Use `<T, U>` for array/slice equality `impl`swackbyte-32/+32
Makes the trait implementation documentation for arrays and slices appear more consistent.
2023-03-01Merge two different equality specialization traits in `core`Scott McMurray-67/+6
2022-08-11more typosRalf Jung-1/+1
Co-authored-by: Nicholas Nethercote <n.nethercote@gmail.com>
2022-07-20fix typoRalf Jung-1/+1
Co-authored-by: Marco Colombo <mar.colombo13@gmail.com>
2022-07-20make raw_eq precondition more restrictiveRalf Jung-3/+4
2021-12-14Do array-slice equality via arrays, rather than always via slicesScott McMurray-12/+29
This'll still go via slices eventually for large arrays, but this way slice comparisons to short arrays can use the same memcmp-avoidance tricks. Added some tests for all the combinations to make sure I didn't accidentally infinitely-recurse something.
2021-12-10Allow `memcmp` for more array comparisonsScott McMurray-5/+49
This way comparing `[NonZeroU8; 8]` is just as fast as comparing `[u8; 8]`.
2021-08-01bump bootstrap compiler to 1.55Pietro Albini-5/+0
2021-07-08Stop generating `alloca`s+`memcmp` for simple array equalityScott McMurray-2/+51
2021-07-08Move the `PartialEq` and `Eq` impls for arrays to a separate fileScott McMurray-0/+111