Struct piston_meta::Syntax [] [src]

pub struct Syntax {
    pub rules: Vec<Rule>,
    pub names: Vec<Arc<String>>,
}

Stores syntax.

Fields

rules: Vec<Rule>

Rule data.

names: Vec<Arc<String>>

Name of rules.

Methods

impl Syntax
[src]

fn new() -> Syntax

Creates a new syntax.

fn push(&mut self, name: Arc<String>, rule: Rule)

Adds a new rule.

Trait Implementations

impl PartialEq for Syntax
[src]

fn eq(&self, __arg_0: &Syntax) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Syntax) -> bool

This method tests for !=.

impl Debug for Syntax
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Syntax
[src]

fn clone(&self) -> Syntax

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more