summaryrefslogtreecommitdiff
path: root/rust/rustlings/exercises/14_generics/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'rust/rustlings/exercises/14_generics/README.md')
-rw-r--r--rust/rustlings/exercises/14_generics/README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/rust/rustlings/exercises/14_generics/README.md b/rust/rustlings/exercises/14_generics/README.md
new file mode 100644
index 0000000..0c8c8cb
--- /dev/null
+++ b/rust/rustlings/exercises/14_generics/README.md
@@ -0,0 +1,11 @@
+# Generics
+
+Generics is the topic of generalizing types and functionalities to broader cases.
+This is extremely useful for reducing code duplication in many ways, but can call for some rather involved syntax.
+Namely, being generic requires taking great care to specify over which types a generic type is actually considered valid.
+The simplest and most common use of generics is for type parameters.
+
+## Further information
+
+- [Generic Data Types](https://doc.rust-lang.org/book/ch10-01-syntax.html)
+- [Bounds](https://doc.rust-lang.org/rust-by-example/generics/bounds.html)