Skip to content

Shared Ownership practice problems in Rust

Difficulty:
Category:
Tag:

Showing 5 of 5

Status Title Difficulty
Arc: shared ownership across threads Easy
Dispatch through Rc: Rc<dyn Trait> and shared behaviour Medium
Inside `Rc`: `strong_count`, `ptr_eq`, `get_mut`, `try_unwrap` Medium
`Rc<RefCell<T>>`: the workhorse, and when it is a smell Hard
`Rc<T>`: shared ownership by reference counting Medium