Skip to main content

CustomExtractor

Trait CustomExtractor 

Source
pub trait CustomExtractor: Send + Sync {
    // Required method
    fn extract(
        &self,
        path: &str,
        source: &[u8],
        language: &str,
    ) -> Result<(Vec<Symbol>, Vec<Relation>)>;
}
Expand description

Trait for custom extraction backends (e.g., JVM grammar plugins).

Required Methods§

Source

fn extract( &self, path: &str, source: &[u8], language: &str, ) -> Result<(Vec<Symbol>, Vec<Relation>)>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§