PestDeconstruct

Trait PestDeconstruct 

Source
pub trait PestDeconstruct<'i> {
    type Rule: RuleType;

    // Required method
    fn deconstruct(self) -> PestDeconstructor<'i, Self::Rule>;
}
Expand description

Deconstruct a Pest Pair into its inner productions in a strongly-typed, panic-enforced manner. See PestDeconstructor for more information.

Required Associated Types§

Source

type Rule: RuleType

The rule enum that this pairs with.

Required Methods§

Source

fn deconstruct(self) -> PestDeconstructor<'i, Self::Rule>

Create a new PestDeconstructor to disassemble the Pest parse tree.

Implementations on Foreign Types§

Source§

impl<'i, R: RuleType> PestDeconstruct<'i> for Pair<'i, R>

Implementors§