pub trait PreProcessor {
    // Required method
    fn pre_process(
        &self,
        original: PathBuf
    ) -> PreProcessorResult<Vec<(PreProcessorTarget, Vec<u8>)>>;

    // Provided method
    fn name(&self) -> &'static str { ... }
}
Expand description

Pre-processor hook for wasm generation.

Required Methods§

source

fn pre_process( &self, original: PathBuf ) -> PreProcessorResult<Vec<(PreProcessorTarget, Vec<u8>)>>

Returns the result of the pre-processor.

Provided Methods§

source

fn name(&self) -> &'static str

Returns the name of the pre-processor. It must be some unique string.

Implementors§