990322af354d36ba766649e1b0d0ebededb8ac25
programming/20240331200415-rust.org
... | ... | @@ -0,0 +1,11 @@ |
1 | +:PROPERTIES: |
|
2 | +:ID: 9f95dfcf-db83-4c7c-b211-d7600f965f0a |
|
3 | +:END: |
|
4 | +#+title: Rust |
|
5 | + |
|
6 | +* General Notes |
|
7 | +** On the usage of =impl Trait= |
|
8 | + |
|
9 | +=impl Trait= *is not* intended as a replacement for dynamic dispatch (=dyn Trait=). |
|
10 | + |
|
11 | +It only allows to write a placeholder for some types that are unrepresentable, like closures and iterators. |