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

supply backing type, use const fn for constructors #1

Closed
wants to merge 1 commit into from

Conversation

karroffel
Copy link

The numeric storage type can now be supplied as a generic type rather than
hardcoding to usize. The implementations for traits are moved to macros.

The bounds are now supplied using i128, allowing both negative bounds and
bigger bounds than usize.

The constructors are now const fns and will panic at compile time too
if used in a const context.

The numeric storage type can now be supplied as a generic type rather than
hardcoding to `usize`. The implementations for traits are moved to macros.

The bounds are now supplied using `i128`, allowing both negative bounds and
bigger bounds than `usize`.

The constructors are now `const fn`s and will panic at compile time too
if used in a `const` context.
@kgv
Copy link
Owner

kgv commented Jun 7, 2021

Closed in favor 2ca66e0.

@kgv kgv closed this Jun 7, 2021
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.

None yet

2 participants