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

Show size of file

  • size
  • len
fn main() {
    let path = "du.rs";
    let meta = match std::fs::metadata(path) {
        Ok(val) => val,
        Err(_) => panic!("error"),
    };
    dbg!(meta.len());
}