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

Implement From instead of Into trait #3

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

S-Erik
Copy link
Contributor

@S-Erik S-Erik commented Mar 23, 2023

See Issue #2

Additionally Vec::with_capacity is used to pre-allocate the right amount of memory and iterators are used instead of for loops to set the values in data. The extend_from_slice method is used to push a whole slice into data instead of pushing element by element.

@JErnestoMtz JErnestoMtz merged commit eb8996a into JErnestoMtz:main Mar 23, 2023
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