Trait pest_ion::TryPestToElement [−][src]
pub trait TryPestToElement { type Element: Element; fn try_pest_to_element(&self) -> PestToIonResult<Self::Element>; }
Expand description
Converts representation of a Pest grammar (or part of a grammar) into Ion Element
.
Associated Types
Required methods
fn try_pest_to_element(&self) -> PestToIonResult<Self::Element>
[src]
fn try_pest_to_element(&self) -> PestToIonResult<Self::Element>
[src]Converts this into Element
which may imply parsing Pest syntax.
This returns Err
if the the conversion fails. For example, this can happen if the
source is not a valid Pest grammar.
Implementations on Foreign Types
Parses a str
slice as a Pest grammar and serializes the AST into Element
.
type Element = OwnedElement