[][src]Struct myelin_engine::simulation::builder::SimulationBuilder

pub struct SimulationBuilder { /* fields omitted */ }

Builder for the Simulation. This is the composition root. Only advanced users should derive from the defaults.

Example

use myelin_engine::simulation::SimulationBuilder;

let simulation = SimulationBuilder::new().build();

Methods

impl SimulationBuilder[src]

pub fn new() -> SimulationBuilder[src]

Creates a new builder by calling SimulationBuilder::default()

pub fn world(&mut self, world: Box<dyn World>)[src]

Sets the World which the Simulation is going to use.

By default this builder uses the NphysicsWorldBuilder with default settings.

pub fn world_interactor_factory_fn(
    &mut self,
    world_interactor_factory_fn: Box<WorldInteractorFactoryFn>
)
[src]

pub fn instant_wrapper_factory_fn(
    &mut self,
    instant_wrapper_factory_fn: Box<InstantWrapperFactoryFn>
)
[src]

pub fn build(self) -> Box<dyn Simulation>[src]

Builds the Simulation.

Trait Implementations

impl Default for SimulationBuilder[src]

impl Debug for SimulationBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Downcast for T where
    T: Any