Ownership and Moves
Learn the rule behind Rust's memory safety: every value has one owner.
Lektion ansehen →Was Rust besonders macht: Ownership, Moves, Referenzen, Slices, Lifetimes und Smart Pointer.
Rust online ausprobierenLearn the rule behind Rust's memory safety: every value has one owner.
Lektion ansehen →Let a function use a value without taking ownership of it.
Lektion ansehen →Tell the compiler how long references stay valid with lifetime annotations.
Lektion ansehen →Put data on the heap with Box and share ownership with Rc.
Lektion ansehen →