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 trait for the Numeric Bytes type #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tyilo
Copy link

@tyilo tyilo commented Jun 4, 2024

Fixes #8

@tyilo
Copy link
Author

tyilo commented Jun 5, 2024

This could also be implemented by using the Array trait from array-trait.

Another option is to include the definition of your own Array and Slice traits, as these are also fundamental types in rust.

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.

How to convert <T as funty::Numeric>::Bytes to Vec<u8>?
1 participant