topics table

This commit is contained in:
AF 2023-08-01 09:08:16 +00:00
parent 2c24dca215
commit e020a098d0
3 changed files with 22 additions and 2 deletions

View File

@ -11,3 +11,5 @@
- [Chapter 2](./chapter_2.md) - [Chapter 2](./chapter_2.md)
- [AnyStr](./exercises/anystr.md) - [AnyStr](./exercises/anystr.md)
- [Mode](./exercises/mode.md) - [Mode](./exercises/mode.md)
[Topics (Spoilers)](./topics.md)

View File

@ -41,8 +41,7 @@ fn test2(x: impl A2) {
# fn ap_move(t: Self::T) -> Self::T; # fn ap_move(t: Self::T) -> Self::T;
# } # }
# trait AWrapper: Wrapper<Self::AWrapped> { type AWrapped; } # trait AWrapper: Wrapper<Self::AWrapped> { type AWrapped; }
# impl<T: AWrapper> A for T where T::AWrapped: AProxy<T = T>, # impl<T: AWrapper> A for T where T::AWrapped: AProxy<T = T> {
# {
# fn a_ref(&self) -> u64 { <T::AWrapped as AProxy>::ap_ref(self) } # fn a_ref(&self) -> u64 { <T::AWrapped as AProxy>::ap_ref(self) }
# fn a_mut(&mut self) -> bool { <T::AWrapped as AProxy>::ap_mut(self) } # fn a_mut(&mut self) -> bool { <T::AWrapped as AProxy>::ap_mut(self) }
# fn a_move(self) -> Self { <T::AWrapped as AProxy>::ap_move(self) } # fn a_move(self) -> Self { <T::AWrapped as AProxy>::ap_move(self) }

19
src/topics.md Normal file
View File

@ -0,0 +1,19 @@
# Topics
Rows are ordered based on estimated difficulty.
| lifetimes | `trait`s | `struct`s |
|------------------------|--------------------|-------------|
| [explicit lifetimes] | [`Fn`?] | |
| [extracting lifetimes] | [exclusive traits] | [`RcChars`] |
| | [`AnyStr`] | |
| | [merging traits] | |
[explicit lifetimes]: ./exercises/refbind.md
[`Fn`?]: ./exercises/bind.md
[`RcChars`]: ./exercises/rcchars.md
[extracting lifetimes]: ./exercises/bool_stream.md
[exclusive traits]: ./exercises/multiple_blanket.md
[merging traits]: ./exercises/modes.md
[`AnyStr`]: ./exercises/anystr.md