feat: Entity::assert_all() (resolves #200)
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.
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.
Also, I just noticed that the doctest doesn't compile :woman_facepalming:.
Also, I just noticed that the doctest doesn't compile woman_facepalming.
Fixed, after probably too much effort...
Looks fantastic.
Yeah, not sure about the imports as things should already be formatted but some mysteries are best left alone.