Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve bounds.rs #248

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Commits on Sep 25, 2022

  1. 1) Implemented all FIXMEs:

        → Trait now contains associated constants rather than non-`const` functions.
        → `LowerBounded` and `UpperBounded` are now supertraits of `Bounded`, not subtraits.
    2) Expanded implementations to also cover `NonZero` data-types.
    3) Made the code DRYer, with regards to the implementation of `bounded_impl!`.
    4) Added a couple tests.
    Ιωάννης Νικολαΐδης committed Sep 25, 2022
    Configuration menu
    Copy the full SHA
    afdff94 View commit details
    Browse the repository at this point in the history
  2. Clarified new tests so they also work in debug mode.

    Ιωάννης Νικολαΐδης committed Sep 25, 2022
    Configuration menu
    Copy the full SHA
    6d6dd4d View commit details
    Browse the repository at this point in the history