Skip to main content

IncludeResolver

Trait IncludeResolver 

Source
pub trait IncludeResolver {
    // Required method
    fn resolve(
        &mut self,
        path: &str,
        angled: bool,
        includer: &str,
    ) -> Result<(String, String), String>;
}
Expand description

Finds the text of a file that #include names.

Required Methods§

Source

fn resolve( &mut self, path: &str, angled: bool, includer: &str, ) -> Result<(String, String), String>

Returns the name and text of the file. angled is true for <name> and false for "name". includer is the name of the file with the directive.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§