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 some convience traits for primative types. #18

Merged
merged 2 commits into from
Oct 6, 2022

Conversation

a2aaron
Copy link
Contributor

@a2aaron a2aaron commented Sep 28, 2022

This PR implements Add, Sub, AddAssign, and SubAssign for the basic integer primatives (u4, u7, u14, u24, and u28). I find this to be useful when working with things such as ticks, which are usually encoded as u28s.

This PR also implements From<Fps> for u32 and f32. This is simply for convenience, since there are already as_f32 and as_int methods on Fps.

@kovaxis kovaxis merged commit 65c0ba0 into kovaxis:master Oct 6, 2022
@kovaxis
Copy link
Owner

kovaxis commented Oct 6, 2022

Great! Thanks!

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.

2 participants