[][src]Trait lindenmayer_system::parametric::ParametricRule

pub trait ParametricRule: Clone + Debug {
type InSym: ParametricSymbol;
type OutSym: ParametricSymbol;
    fn apply(&self, psym: &Self::OutSym) -> Result<Vec<Self::OutSym>, RuleError>;
fn symbol(&self) -> &<Self::InSym as ParametricSymbol>::Sym; }

Associated Types

Loading content...

Required methods

fn apply(&self, psym: &Self::OutSym) -> Result<Vec<Self::OutSym>, RuleError>

fn symbol(&self) -> &<Self::InSym as ParametricSymbol>::Sym

Loading content...

Implementors

impl<Sym, PS, PS2, C> ParametricRule for PRule<Sym, PS, PS2, C> where
    Sym: Alphabet,
    PS: ParametricSymbol<Sym = Sym, Param = C::Expr>,
    PS2: ParametricSymbol<Sym = Sym, Param = <C::Expr as Expression>::Element>,
    C: Condition
[src]

type InSym = PS

type OutSym = PS2

fn apply(&self, psym: &PS2) -> Result<Vec<PS2>, RuleError>[src]

Tries to apply the rule and if applicable, produces a successor.

Loading content...