Content-Length: 29593 | pFad | https://doc.rust-lang.org/reference/items/../expressions/../types/../unsafety.html

Unsafety - The Rust Reference

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Unsafety

Unsafe operations are those that can potentially violate the memory-safety guarantees of Rust’s static semantics.

The following language level features cannot be used in the safe subset of Rust:

  • Accessing a field of a union, other than to assign to it.
  • Calling an unsafe function.

  1. Prior to the 2024 edition, extern blocks were allowed to be declared without unsafe.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/reference/items/../expressions/../types/../unsafety.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy