pub trait IncludeLoader {
// Required method
fn load(&mut self, path: &Path, limit: u64) -> Result<String, String>;
}Expand description
Loads the text of an .included file. The default implementation
reads the file system; a WASM host can supply its own.
limit is the byte budget left for this deck: an implementation
must not return more than limit bytes, and must refuse sources
it cannot bound (pipes, device files) — otherwise a hostile
.include /dev/zero would hang the read before any cap applies.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".