This lesson aims to teach the reader about the inner-workings of Rust's *(deref operator)
and trait Deref
, as well as how to take advantage of those features.
This lesson assumes that:
- You have amateurish understanding of Rust's type system. Most importantly, understand that
references are types, meaning
&T
,&mut T
andT
are all different types.