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

Pattern matching parameters && trait method #15

Merged

Conversation

asukaminato0721
Copy link
Contributor

ref https://doc.rust-lang.org/book/ch18-01-all-the-places-for-patterns.html#function-parameters

so we can add meaningful name to each array member now.

@asukaminato0721 asukaminato0721 marked this pull request as draft December 10, 2024 04:56
@asukaminato0721 asukaminato0721 changed the title Pattern matching parameters Pattern matching parameters && trait method Dec 10, 2024
@asukaminato0721
Copy link
Contributor Author

trait methods enable us to write code like ndarray, without manually import all the module.

@asukaminato0721 asukaminato0721 marked this pull request as ready for review December 10, 2024 05:39
@asukaminato0721 asukaminato0721 force-pushed the Pattern-matching-parameters branch from 684e7e8 to d81736d Compare December 10, 2024 06:44
@nobuyuki83 nobuyuki83 merged commit afd56ff into nobuyuki83:main Dec 10, 2024
1 check passed
@nobuyuki83
Copy link
Owner

This looks great! I learned a lot from your suggestion.

@asukaminato0721 asukaminato0721 deleted the Pattern-matching-parameters branch January 20, 2025 05:13
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