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

Implement Integer methods for Wrapping #48810

Merged
merged 3 commits into from
Mar 20, 2018

Commits on Mar 19, 2018

  1. Impl Integer methods for Wrapping

    Wrapping<T> now implements:
    
    count_ones, count_zeros, leading_zeros,
    trailing_zeros, rotate_left, rotate_right, swap_bytes, from_be,
    from_le, to_be, to_le, and pow
    
    where T is:
    
    u8, u16, u32, u64, usize, i8, i16, i32, i64, or isize.
    
    Docs were written for all these methods, as well as examples. The
    examples mirror the ones on u8, u16, etc... for consistency.
    
    Closes rust-lang#32463
    Phlosioneer committed Mar 19, 2018
    Configuration menu
    Copy the full SHA
    612c4a9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5258af3 View commit details
    Browse the repository at this point in the history
  3. Fix trailing whitespace

    Phlosioneer committed Mar 19, 2018
    Configuration menu
    Copy the full SHA
    bf101a5 View commit details
    Browse the repository at this point in the history