fn read_file(path: &Path) -> Vec<u8> {
    let mut buffer = Vec::new();
    let mut file = fs::File::open(path)
        .unwrap_or_else(|err| panic!("Couldn't open file {:?}: {:?}", path, err));
    file.read_to_end(&mut buffer)
        .unwrap_or_else(|err| panic!("Couldn't read file {:?}: {:?}", path, err));
    buffer
}
// Reads the file at `path` and the returns the content as bytes.
Reads the file at `path` and the returns the content as bytes.
Reads the file at ` path ` and the returns the content as bytes .
fn read_file(path: &Path) -> Vec<u8> {
    let mut buffer = Vec::new();
    let mut file = fs::File::open(path)
        .unwrap_or_else(|err| panic!("Couldn't open file {:?}: {:?}", path, err));
    file.read_to_end(&mut buffer)
        .unwrap_or_else(|err| panic!("Couldn't read file {:?}: {:?}", path, err));
    buffer
}
fn read_file ( path : & Path ) -> Vec < u8 > { let mut buffer = Vec :: new ( ) ; let mut file = fs :: File :: open ( path ) . unwrap_or_else ( | err | panic ! ( " " path err ) ) ; file . read_to_end ( & mut buffer ) . unwrap_or_else ( | err | panic ! ( " " path err ) ) ; buffer }
Reads the file at `path` and the returns the content as bytes.
Reads the file at ` path ` and the returns the content as bytes .
path
&Path
path
&Path