[−][src]Struct purrmitive::core::PurrMultiThreadRunner
Fields
shape_number: u32
thread_number: u32
states: Vec<PurrState<T>>
rxs: Vec<Receiver<PurrState<T>>>
txs: Vec<Sender<PurrWorkerCmd>>
on_step: Option<Box<dyn FnMut(PurrState<T>) + Sync + Send>>
Implementations
impl<T: 'static + PurrShape> PurrMultiThreadRunner<T>
[src]
pub fn new(
shape_number: u32,
thread_number: u32,
on_step: Option<Box<dyn FnMut(PurrState<T>) + Sync + Send>>
) -> Self
[src]
shape_number: u32,
thread_number: u32,
on_step: Option<Box<dyn FnMut(PurrState<T>) + Sync + Send>>
) -> Self
Trait Implementations
impl<T: PurrShape> Default for PurrMultiThreadRunner<T>
[src]
impl<T: 'static + PurrShape> PurrModelRunner for PurrMultiThreadRunner<T>
[src]
type M = PurrHillClimbModel
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 get_last_shape(&self) -> String
[src]
pub fn save(&self, context: &PurrContext, output: &str)
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for PurrMultiThreadRunner<T>
[src]
impl<T> Send for PurrMultiThreadRunner<T>
[src]
impl<T> Sync for PurrMultiThreadRunner<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for PurrMultiThreadRunner<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> !UnwindSafe for PurrMultiThreadRunner<T>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
[src]
pub fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,