pub trait Files { // Required method fn read(&self, path: &str) -> Result<Vec<u8>, String>; }
Reads the whole file at path.
path
The file cannot be read. The message matches the Go CLI’s.
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".