[][src]Trait nphysics_testbed2d::WorldOwner

pub trait WorldOwner {
    fn get<'a: 'b, 'b>(&'a self) -> Box<dyn Deref<Target = World<f32>> + 'b>;
fn get_mut<'a: 'b, 'b>(
        &'a mut self
    ) -> Box<dyn DerefMut<Target = World<f32>> + 'b>; }

This trait is designed to allow choosing implementation of underlying storing of World: shared between threads or with a single owner.

Required methods

fn get<'a: 'b, 'b>(&'a self) -> Box<dyn Deref<Target = World<f32>> + 'b>

fn get_mut<'a: 'b, 'b>(
    &'a mut self
) -> Box<dyn DerefMut<Target = World<f32>> + 'b>

Loading content...

Implementations on Foreign Types

impl WorldOwner for World<f32>[src]

impl WorldOwner for Arc<RwLock<World<f32>>>[src]

Loading content...

Implementors

Loading content...