BackendCompileParams

Trait BackendCompileParams 

Source
pub trait BackendCompileParams {
    // Required methods
    fn docs_directory(&self) -> &Path;
    fn build_directory(&self) -> &Path;
    fn output_directory(&self) -> &Path;
    fn evaluate_directive(
        &self,
        tag: &str,
    ) -> HyperlitResult<DirectiveEvaluation<'_>>;
    fn set_segment_included(
        &mut self,
        segment_id: SegmentId,
    ) -> HyperlitResult<()>;
}
Expand description

Parameters for the compilation process

Required Methods§

Source

fn docs_directory(&self) -> &Path

Path to the directory containing the documentation files

Source

fn build_directory(&self) -> &Path

Path to the directory where the documentation will be built

Source

fn output_directory(&self) -> &Path

Path to the directory where the documentation will be output

Source

fn evaluate_directive( &self, tag: &str, ) -> HyperlitResult<DirectiveEvaluation<'_>>

Retrieve all segments containing the given tag

Source

fn set_segment_included(&mut self, segment_id: SegmentId) -> HyperlitResult<()>

Mark a segment as included in the output

Implementors§