[][src]Struct lindenmayer_system::parametric::PSystem

pub struct PSystem<R> where
    R: ParametricRule
{ /* fields omitted */ }

Methods

impl<R> PSystem<R> where
    R: ParametricRule
[src]

pub fn new() -> PSystem<R>[src]

pub fn add_rule(&mut self, rule: R)[src]

Trait Implementations

impl<R> ParametricSystem for PSystem<R> where
    R: ParametricRule
[src]

type Rule = R

fn apply_first_rule(
    &self,
    sym: &<Self::Rule as ParametricRule>::OutSym
) -> Option<Vec<<Self::Rule as ParametricRule>::OutSym>>
[src]

Apply first matching rule and return expanded successor.

fn develop_next(
    &self,
    axiom: &Vec<<Self::Rule as ParametricRule>::OutSym>
) -> (Vec<<Self::Rule as ParametricRule>::OutSym>, usize)
[src]

Apply in parallel the first matching rule to each symbol in the string. Returns the total number of rule applications. Read more

fn develop(
    &self,
    axiom: Vec<<Self::Rule as ParametricRule>::OutSym>,
    max_iterations: usize
) -> (Vec<<Self::Rule as ParametricRule>::OutSym>, usize)
[src]

Develop the system starting with axiom up to max_iterations. Return iteration count.

impl<R: Clone> Clone for PSystem<R> where
    R: ParametricRule
[src]

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

Performs copy-assignment from source. Read more

impl<R: Debug> Debug for PSystem<R> where
    R: ParametricRule
[src]

Auto Trait Implementations

impl<R> Send for PSystem<R> where
    R: Send

impl<R> Sync for PSystem<R> where
    R: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]