Rust does not provide built-in memory-mapped I/O; you must use the memmap2 crate to map files into memory. Add memmap2 = "0.9" to your Cargo.toml and use MmapOptions to create a mapping.
use memmap2::MmapOptions;
use std::fs::File;
fn main() {
let file = File::open("data.bin").unwrap();
let mmap = unsafe { MmapOptions::new().map(&file).unwrap() };
println!("First byte: {}", mmap[0]);
}