pub trait Parser<T = SourceFile> {
type Error: Error;
// Required method
fn parse_cells(&mut self, tokens: CellStream) -> Result<T, Self::Error>;
}Expand description
A parser backend that produces one typed syntax target.
Backends may construct T directly or adapt their concrete syntax tree
through [CstNode] and reconstruct.
Required Associated Types§
Required Methods§
fn parse_cells(&mut self, tokens: CellStream) -> Result<T, Self::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".