This issue describes how to implement the generic-types concept exercise for the rust track.
Getting started
Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read up on the following documents:
Often called simply "generics", or more explicitly generic type parameters, generics are important in writing clear and DRY code. The student has likely used a generic container by this point to solve one of the other exercises, and so should be introduced to them formally.
Learning objectives
recognize the syntax for generics
recognize the convention of using T for a type parameter
Out of scope
minimize discussion of generics outside functions and structs
See our implementation guide for guidance. In addition you may want to make use of the shell script while in the concept directory, with the argument of the exercise name, e.g. sh boil_exercise.sh generic-types
Help
If you have any questions while implementing the exercise, please post the questions as comments in this issue.
This issue describes how to implement the
generic-types
concept exercise for the rust track.Getting started
Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read up on the following documents:
Please also watch the following video:
Goal
Often called simply "generics", or more explicitly generic type parameters, generics are important in writing clear and DRY code. The student has likely used a generic container by this point to solve one of the other exercises, and so should be introduced to them formally.
Learning objectives
Out of scope
Concepts
Prerequisites
This will require a conceptual understanding of
Resources to refer to
Hints
After
Representer
No changes required
Analyzer
No changes required
Implementing
See our implementation guide for guidance. In addition you may want to make use of the shell script while in the
concept
directory, with the argument of the exercise name, e.g.sh boil_exercise.sh generic-types
Help
If you have any questions while implementing the exercise, please post the questions as comments in this issue.