pub trait Reconstruct<N: ExternalCstNode>: Sized {
// Required methods
fn matches(node: &N) -> bool;
fn reconstruct(node: N) -> Result<Self, ReconstructError>;
}Expand description
Reconstructs one typed value from a parser backend’s untyped CST node.
Required Methods§
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".