Ownership and Moves
Learn the rule behind Rust's memory safety: every value has one owner.
Открыть урок →То, что отличает Rust: владение, перемещение, ссылки, срезы, времена жизни и умные указатели.
Попробовать Rust онлайнLearn the rule behind Rust's memory safety: every value has one owner.
Открыть урок →Tell the compiler how long references stay valid with lifetime annotations.
Открыть урок →Put data on the heap with Box and share ownership with Rc.
Открыть урок →