[−][src]Trait ocl_include::Hook
Something that may provide file content by its name
Required methods
fn read(&self, path: &Path, dir: Option<&Path>) -> Result<(PathBuf, String)>
Performs file loading
Arguments:
+ path
: absolute or relative file path,
+ dir
: directory of parent file if it contains relative include directive
Returns on success: + Absolute path to file + File content