[][src]Trait lindenmayer_system::DualAlphabet

pub trait DualAlphabet: Alphabet {
type Terminal;
type NonTerminal: PartialOrd + Ord + Clone;
    fn nonterminal(&self) -> Option<&Self::NonTerminal>;
fn terminal(&self) -> Option<&Self::Terminal>; }

An alphabet that distinguishes between terminal and non-terminal symbols.

Associated Types

Loading content...

Required methods

fn nonterminal(&self) -> Option<&Self::NonTerminal>

If the character is a non-terminal, return Some(..). Otherwise return None.

fn terminal(&self) -> Option<&Self::Terminal>

If the character is a terminal, return Some(..). Otherwise return None.

Loading content...

Implementors

Loading content...