-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
Atom
& AtomLogic
for small, pow2-sized integer arrays
In theory we could implement `Atom` for `[T; N]` where `T` packs into a representation with X bytes such that `N * X` is smaller than the largest supported atomic size. However, implementing anything generic like that is really tricky due to impl-overlap check and various other issues. It would be really nice to support `[Foo; 2]` as long as `Foo` implements `Atom<Repr = u8>`. But again, this is really tricky and if possible at all, results in a bunch of helper traits. Adding this fixed set of impls should cover the most important use cases.
- Loading branch information
1 parent
f06caa4
commit 738841e
Showing
2 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters