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§
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".