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 Derive for into_inner function #171

Open
vultix opened this issue Aug 5, 2021 · 3 comments
Open

Add Derive for into_inner function #171

vultix opened this issue Aug 5, 2021 · 3 comments

Comments

@vultix
Copy link

vultix commented Aug 5, 2021

While there's no true IntoInner trait, it's a super common pattern for newtypes to provide an into_inner function. It'd be great if this crate could make it easy to add that function.

@vdods
Copy link

vdods commented Jun 18, 2022

Seconded. The Into trait often requires specifying the type through some awkward syntax or temp value, so having an into_inner with a definite type would be great.

@ekanna
Copy link

ekanna commented Jun 24, 2022

Literally waiting for this. It will eliminate lot of code while passing sql params as tuple. We can write generic code for all tables.

@JelteF
Copy link
Owner

JelteF commented Dec 21, 2023

Sounds reasonable. I think it would fit well with the rest of our derives for static methods. PRs are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants