Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

armanriazi•rust•box•vs•refcell

With references and Box<T>, the borrowing rules’ invariants are enforced at compile time. With RefCell<T>, these invariants are enforced at runtime. 
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+5 =