pub trait SourceFiles {
// Required methods
fn read(&mut self, name: &str) -> Option<Vec<u8>>;
fn exists(&mut self, name: &str) -> bool;
// Provided method
fn decode(&mut self, charset: &str, bytes: &[u8]) -> Option<Vec<u8>> { ... }
}Expand description
How the preprocessor gets at source files.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".