Builder

Trait Builder 

Source
pub trait Builder<L: Language> {
    // Required method
    fn build<'a, S: Source + ?Sized>(
        &self,
        text: &S,
        edits: &[TextEdit],
        cache: &'a mut impl BuilderCache<L>,
    ) -> BuildOutput<L>;
}
Expand description

Trait for building higher-level structures (like ASTs) from source text.

Required Methods§

Source

fn build<'a, S: Source + ?Sized>( &self, text: &S, edits: &[TextEdit], cache: &'a mut impl BuilderCache<L>, ) -> BuildOutput<L>

Builds the structure from the source text.

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§