Skip to main content

ExplainParser

Trait ExplainParser 

Source
pub trait ExplainParser:
    Send
    + Sync
    + Debug {
    // Required method
    fn parse(&self, raw: &str) -> Result<ExplainPlan, ExplainError>;

    // Provided method
    fn parse_or_default(&self, raw: &str) -> ExplainPlan { ... }
}
Expand description

Dialect EXPLAIN parser trait

Required Methods§

Source

fn parse(&self, raw: &str) -> Result<ExplainPlan, ExplainError>

Parse raw EXPLAIN output into unified ExplainPlan

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§