Skip to main content

HeaderResolver

Trait HeaderResolver 

Source
pub trait HeaderResolver {
    // Required method
    fn resolve(
        &self,
        source_dir: Option<&Path>,
        raw: &Path,
    ) -> Option<HeaderBody>;
}
Expand description

Look up the body of a header by its raw -include(...) or -include_lib(...) argument, given the directory of the source file that named it.

Required Methods§

Source

fn resolve(&self, source_dir: Option<&Path>, raw: &Path) -> Option<HeaderBody>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§