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

Add debug and clone to Font and its types. #56

Closed
wants to merge 3 commits into from

Conversation

sanbox-irl
Copy link

This ended up effecting more types than I initially anticipated, which theoretically has the most minor of effects of compiles times,
or binary size, depending on if the impls are used by users.

However, it's just difficult to integrate Font into a larger game engine which assumes
that assets will implement Debug.

This ended up effecting more types than I initially anticipated, which theoretically has the most minor of effects of compiles times,
or binary size, depending on if the impls are used by users.

However, it's just difficult to integrate `Font` into a larger game engine which assumes
that assets will implement Debug.
@mooman219
Copy link
Owner

In retrospect, I'm apprehensive about debug: It'll leak internal state that probably should be visible. A manual debug implementation would be the right path over a blanket macro definition.

@sanbox-irl
Copy link
Author

Bumped it and added macro support for small and reasonable things which are already available by getters.

Right now, we can't indicate that we didn't debug everything because we don't have finish_non_exhaustive yet (rust-lang/rust#67364) hopefully that gets stabilized soon and this can be made more clear, but this is fine as is I think.

What do you think?

@mooman219
Copy link
Owner

This is basically added

@mooman219 mooman219 closed this Apr 24, 2021
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