Rust-Lernpfad

Ownership und Borrowing

Was Rust besonders macht: Ownership, Moves, Referenzen, Slices, Lifetimes und Smart Pointer.

Rust online ausprobieren

5 Lektionen

Lifetimes

Tell the compiler how long references stay valid with lifetime annotations.

Lektion ansehen →