Skip to main content

IncludeHandler

Trait IncludeHandler 

Source
pub trait IncludeHandler {
    // Required method
    fn include(
        &mut self,
        ty: IncludeType,
        header_name: &str,
        includer_name: &str,
        include_depth: usize,
    ) -> Option<IncludeResult>;
}
Expand description

A structure to resolve include path ourselves. Data can be attached to this struct for solving path If the inclusion fails, return None.

Required Methods§

Source

fn include( &mut self, ty: IncludeType, header_name: &str, includer_name: &str, include_depth: usize, ) -> Option<IncludeResult>

Implementors§