// src/walk/io.rs
use Mmap;
use ;
/// Opens a file and memory-maps it as read-only.
///
/// Returns `None` if:
/// - the file cannot be opened
/// - the file cannot be memory-mapped
///
/// # Safety
/// All unsafe code is contained within this function.
/// The mapping is read-only and valid for the lifetime of the returned `Mmap`.