Struct grammar_tech::Rule [−][src]
Fields
ante: Vec<Token>
succ: Vec<Vec<Token>>
Methods
impl Rule
[src]
impl Rule
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn choice(self) -> Self
[src]
pub fn choice(self) -> Self
pub fn var(self, name: &str) -> Self
[src]
pub fn var(self, name: &str) -> Self
pub fn chars(self, string: &str) -> Self
[src]
pub fn chars(self, string: &str) -> Self
Trait Implementations
impl Clone for Rule
[src]
impl Clone for Rule
fn clone(&self) -> Rule
[src]
fn clone(&self) -> Rule
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Rule
[src]
impl Debug for Rule
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 PartialEq for Rule
[src]
impl PartialEq for Rule