Ownership and Moves
Learn the rule behind Rust's memory safety: every value has one owner.
Vedi la lezione →Ciò che rende Rust diverso: ownership, move, riferimenti, slice, lifetime e smart pointer.
Prova Rust onlineLearn the rule behind Rust's memory safety: every value has one owner.
Vedi la lezione →Let a function use a value without taking ownership of it.
Vedi la lezione →Tell the compiler how long references stay valid with lifetime annotations.
Vedi la lezione →Put data on the heap with Box and share ownership with Rc.
Vedi la lezione →