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

Rewrite boilerplate impls into macro #41

Closed
wants to merge 3 commits into from
Closed

Rewrite boilerplate impls into macro #41

wants to merge 3 commits into from

Commits on Jan 23, 2020

  1. Rewrite boilerplate impls into macro

    Two problems:
    1) I accidentally rustfmt it;
    2) Usize type now has TYPENAME "usize" instead of "u32" or "u64". It could get back by implementing this trait for usize as a standalone with some "cfg!()"s.
    ImmemorConsultrixContrarie committed Jan 23, 2020
    Copy the full SHA
    1d0f40f View commit details
    Browse the repository at this point in the history
  2. Changed resize insides into pure ptr operations

    Rustfmt'ed again, whatever.
    Tested, all tests pass (except for those in "../traits.rs/fmt!" macro, they simply didn't compile (I dunno if those are tests or not at all).
    
    Now that unsafe is pretty strait, clean and should const-eval into one line actually.
    ImmemorConsultrixContrarie committed Jan 23, 2020
    Copy the full SHA
    f2a3d8a View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    a4c4a03 View commit details
    Browse the repository at this point in the history