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

Make from_bits a const fn #229

Merged
merged 1 commit into from May 11, 2021
Merged

Make from_bits a const fn #229

merged 1 commit into from May 11, 2021

Commits on Oct 19, 2020

  1. Make from_bits a const fn

    'if' now works in 'const fn as of rust 1.4.6 (https://blog.rust-lang.org/2020/08/27/Rust-1.46.0.html).
    
    I would love to have 'from_bits' be a 'const fn' because it is the safest from_* function.
    Benjamin Prosnitz committed Oct 19, 2020
    Copy the full SHA
    c3fb4e6 View commit details
    Browse the repository at this point in the history