Saltar a contenido

Month 2-The Type System: Lifetimes, Traits, Smart Pointers, Drop

Goal: by the end of week 8 you can (a) write a function with higher-ranked trait bounds and explain why the bound is HRT, (b) predict from a type signature whether Box<T> or Rc<RefCell<T>> is appropriate, (c) design a public API that uses sealed traits to forbid downstream implementors, and (d) read and reason about variance.


Weeks

Comments