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

Impl Add, Sub, AddAssign and SubAssign for Pool types + base types #22

Closed
alice-i-cecile opened this issue Feb 23, 2023 · 0 comments
Closed
Labels
usability Make the APIs easier to use

Comments

@alice-i-cecile
Copy link
Contributor

LifePool + Life should work just fine.

@alice-i-cecile alice-i-cecile added the usability Make the APIs easier to use label Feb 23, 2023
alice-i-cecile added a commit that referenced this issue Aug 29, 2023
…rait (#35)

* Remove Pool::new and friends

* Update release notes

* Rename Pool::ZERO to Pool::MIN

Fixes Rename `ResourcePool::ZERO` to `MIN_LIMIT` #15

* Credit contributor in release notes for unrelated fix

* Split Pool trait into Pool + RegeneratingPool

* Add is_empty and is_full to Pool trait

Fixes #28.

* Improve docs for Pool::replenish

* Add impls for Add, Sub, AddAssign and SubAssign

Fixes #22

* Add / sub impls

* Add the Display trait

Fixes #21.

* Implement Life/Life -> f32 Div trait

* Update src/ability_state.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usability Make the APIs easier to use
Projects
None yet
Development

No branches or pull requests

1 participant