[][src]Trait purrmitive::core::PurrModelRunner

pub trait PurrModelRunner {
    type M;
    pub fn init(&mut self, model: &mut Self::M);
pub fn step(&mut self, model: &mut Self::M);
pub fn stop(&mut self);
pub fn run(&mut self, model: &mut Self::M);
pub fn get_svg(&self, context: &PurrContext, idx: usize) -> String;
pub fn save(&self, context: &PurrContext, output: &str);
pub fn get_last_shape(&self) -> String; }

Associated Types

type M[src]

Loading content...

Required methods

pub fn init(&mut self, model: &mut Self::M)[src]

pub fn step(&mut self, model: &mut Self::M)[src]

pub fn stop(&mut self)[src]

pub fn run(&mut self, model: &mut Self::M)[src]

pub fn get_svg(&self, context: &PurrContext, idx: usize) -> String[src]

pub fn save(&self, context: &PurrContext, output: &str)[src]

pub fn get_last_shape(&self) -> String[src]

Loading content...

Implementors

impl<T: 'static + PurrShape> PurrModelRunner for PurrMultiThreadRunner<T>[src]

type M = PurrHillClimbModel

Loading content...