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

Format using Debug trait #40

Open
tbarusseau opened this issue Dec 9, 2019 · 2 comments
Open

Format using Debug trait #40

tbarusseau opened this issue Dec 9, 2019 · 2 comments

Comments

@tbarusseau
Copy link

Hello,

Could it be possible to support the Debug trait as well as the Display trait?

If not, is there a way to fmt a Vec<T>?

Thanks in advance.

@gobanos
Copy link
Owner

gobanos commented Dec 9, 2019

Procedural macros don't give access to full reflection, so I don't think I can support both traits. I think can create a special case for Vec<T: Display> though.

Right now, the workaround is to use a wrapper and implement display for the wrapper.

@tbarusseau
Copy link
Author

I see! Thanks for the answer and the utility!

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

No branches or pull requests

2 participants