Struct jens::grammar::File [−][src]
pub struct File { /* fields omitted */ }
Methods
impl File
[src]
impl File
pub fn parse(content: &str) -> File
[src]
pub fn parse(content: &str) -> File
pub fn template_opt(&self, template_name: &str) -> Option<Block>
[src]
pub fn template_opt(&self, template_name: &str) -> Option<Block>
Find a template in the template definition file.
pub fn template(&self, template_name: &str) -> Block
[src]
pub fn template(&self, template_name: &str) -> Block
Find a template in the template definition file. Panics if not found.
Trait Implementations
impl Debug for File
[src]
impl Debug for File
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> From<Pair<'a, Rule>> for File
[src]
impl<'a> From<Pair<'a, Rule>> for File