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

feat: Entity::assert_all() (resolves #200) #211

Merged
merged 2 commits into from
Mar 6, 2023

Conversation

MavethGH
Copy link
Contributor

@MavethGH MavethGH commented Mar 4, 2023

This adds a function for asserting that all components of an Entity have a given attribute, panicking if any do not. Suggested by @ten3roberts in #200.

@MavethGH
Copy link
Contributor Author

MavethGH commented Mar 4, 2023

Note that I also ran rustfmt on entity.rs. I don't think that it'll be a problem, but it's worth mentioning since that's why git is saying that some of the imports changed.

@MavethGH
Copy link
Contributor Author

MavethGH commented Mar 4, 2023

Also, I just noticed that the doctest doesn't compile 🤦‍♀️.

@MavethGH
Copy link
Contributor Author

MavethGH commented Mar 4, 2023

Also, I just noticed that the doctest doesn't compile woman_facepalming.

Fixed, after probably too much effort...

@ten3roberts
Copy link
Contributor

Looks fantastic.

Yeah, not sure about the imports as things should already be formatted but some mysteries are best left alone.

@ten3roberts ten3roberts merged commit 34e8372 into AmbientRun:main Mar 6, 2023
philpax pushed a commit that referenced this pull request May 23, 2023
feat: Entity::assert_all() (resolves #200)
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