Skip to main content

read_bytes

Function read_bytes 

Source
pub fn read_bytes(path: &Path) -> Result<Vec<u8>>
Expand description

Read an entire file as bytes.

ยงErrors

Returns a contextual error when the file cannot be read.