Trait pest_ion::PestToElement[][src]

pub trait PestToElement {
    type Element: Element;
    fn pest_to_element(&self) -> Self::Element;
}
Expand description

Infallible conversion of a Pest grammar (or part of a grammar) into Ion Element.

Associated Types

Required methods

Converts this into an Element representation.

This operation cannot fail and therefore it is implied that it represents some well formed Pest grammar or component thereof.

Implementations on Foreign Types

Converts a body of rules into a struct that has a rule for each field.

Converts a Pest Rule into a struct that has the field for RuleType as a symbol and a field for the Expr.

Serializes the enum into a symbolic value.

Generates a sexp representation of the rule expression.

Implementors