DocsParser

Trait DocsParser 

Source
pub trait DocsParser {
    // Required method
    fn parse<'a, P: Into<&'a Path>, T: IntoIterator<Item = P>>(
        &self,
        paths: T,
        ctx: &mut Context,
    ) -> Result<Vec<Entity>>;
}
Expand description

The trait for implementing language-specific parsers

Required Methods§

Source

fn parse<'a, P: Into<&'a Path>, T: IntoIterator<Item = P>>( &self, paths: T, ctx: &mut Context, ) -> Result<Vec<Entity>>

Given a pathname to an entry point, return a list of entities

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§