[−][src]Struct myelin_engine::simulation::builder::SimulationBuilder
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]
&mut self,
world_interactor_factory_fn: Box<WorldInteractorFactoryFn>
)
Sets the WorldInteractorFactoryFn
.
pub fn instant_wrapper_factory_fn(
&mut self,
instant_wrapper_factory_fn: Box<InstantWrapperFactoryFn>
)
[src]
&mut self,
instant_wrapper_factory_fn: Box<InstantWrapperFactoryFn>
)
Sets the InstantWrapperFactoryFn
.
pub fn build(self) -> Box<dyn Simulation>
[src]
Builds the Simulation
.
Trait Implementations
impl Default for SimulationBuilder
[src]
fn default() -> SimulationBuilder
[src]
impl Debug for SimulationBuilder
[src]
Auto Trait Implementations
impl !Send for SimulationBuilder
impl !Sync for SimulationBuilder
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Downcast for T where
T: Any,
T: Any,