Skip to main content

3 docs tagged with "ownership"

View all tags

Borrowing & References

Shared (&T) and exclusive (&mut T) borrows — the rules that prevent data races at compile time.

Lifetimes

Lifetime annotations — ensuring references don't outlive the data they point to.

Ownership Model

Rust's three ownership rules: one owner, no aliases, drop on scope exit.