In rust compiler ensures references are always valid. Unsafe Rust has a type called raw pointer that are similar to references. As with reference, raw pointers can be immutable or mutable and are written as *const T
and * mut T
Different from references and smart pointers, raw pointers: