Skip to content

Conversation

@cuviper
Copy link
Member

@cuviper cuviper commented Dec 18, 2025

The direct constraints on PrimitiveNumber::Bytes did not render well
in documentation, as everything was listed on one line. With a new trait
this is more easily documented, and we can add new methods akin to the
core::array constructors from_fn and repeat.

This also adds IndexMut<usize> to the list of supertraits, as well as
PartialEq and TryFrom for slice references.

The direct constraints on `PrimitiveNumber::Bytes` did not render well
in documentation, as everything was listed on one line. With a new trait
this is more easily documented, and we can add new methods akin to the
`core::array` constructors `from_fn` and `repeat`.

This also adds `IndexMut<usize>` to the list of supertraits, as well as
`PartialEq` and `TryFrom` for slice references.
@cuviper cuviper added this pull request to the merge queue Dec 18, 2025
Merged via the queue into rust-num:main with commit 3bd9327 Dec 18, 2025
9 checks passed
@cuviper cuviper deleted the primitive-bytes branch December 19, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant