pub struct Multiverse {
    pub parallel: bool,
    /* private fields */
}

Fields§

§parallel: bool

Implementations§

source§

impl Multiverse

source

pub fn new<T, S>(pipeline: T, state: S) -> Multiversewhere T: PipelineEngine + 'static + Send + Sync, S: State + 'static,

source

pub fn with_parallel(self, mode: bool) -> Multiverse

source

pub fn create_universe<S>(&mut self, state: S) -> ID<Universe>where S: State + 'static,

source

pub fn delete_universe(&mut self, id: ID<Universe>) -> Option<Universe>

source

pub fn default_universe_id(&self) -> Option<ID<Universe>>

source

pub fn set_default_universe_id(&mut self, id: Option<ID<Universe>>)

source

pub fn default_universe(&self) -> Option<&Universe>

source

pub fn default_universe_mut(&mut self) -> Option<&mut Universe>

source

pub fn universe(&self, id: ID<Universe>) -> Option<&Universe>

source

pub fn universe_mut(&mut self, id: ID<Universe>) -> Option<&mut Universe>

source

pub fn universe_ids(&self) -> impl Iterator<Item = ID<Universe>>

source

pub fn universes(&self) -> impl Iterator<Item = &Universe>

source

pub fn universes_mut(&mut self) -> impl Iterator<Item = &mut Universe>

source

pub fn universes_with_ids( &self ) -> impl Iterator<Item = (ID<Universe>, &Universe)>

source

pub fn universes_with_ids_mut( &mut self ) -> impl Iterator<Item = (ID<Universe>, &mut Universe)>

source

pub fn insert_pipeline<T>( &mut self, pipeline: T ) -> ID<PhantomData<dyn PipelineEngine + Sync + Send>>where T: PipelineEngine + 'static + Send + Sync,

source

pub fn remove_pipeline( &mut self, id: ID<PhantomData<dyn PipelineEngine + Sync + Send>> )

source

pub fn pipeline_ids( &self ) -> impl Iterator<Item = ID<PhantomData<dyn PipelineEngine + Sync + Send>>>

source

pub fn bind( &mut self, universe: ID<Universe>, pipeline: ID<PhantomData<dyn PipelineEngine + Sync + Send>> )

source

pub fn unbind(&mut self, universe: ID<Universe>)

source

pub fn unbind_all(&mut self)

source

pub fn is_running(&self) -> bool

source

pub fn process(&mut self)

Trait Implementations§

source§

impl Default for Multiverse

source§

fn default() -> Multiverse

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Finalize for T

§

unsafe fn finalize_raw(data: *mut ())

Safety Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Initialize for Twhere T: Default,

§

fn initialize(&mut self)

§

unsafe fn initialize_raw(data: *mut ())

Safety Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> Component for Twhere T: Send + Sync + 'static,