Struct oxygengine::prelude::Multiverse
source · pub struct Multiverse {
pub parallel: bool,
/* private fields */
}
Fields§
§parallel: bool
Implementations§
source§impl Multiverse
impl Multiverse
pub fn new<T, S>(pipeline: T, state: S) -> Multiversewhere T: PipelineEngine + 'static + Send + Sync, S: State + 'static,
pub fn with_parallel(self, mode: bool) -> Multiverse
pub fn create_universe<S>(&mut self, state: S) -> ID<Universe>where S: State + 'static,
pub fn delete_universe(&mut self, id: ID<Universe>) -> Option<Universe>
pub fn default_universe_id(&self) -> Option<ID<Universe>>
pub fn set_default_universe_id(&mut self, id: Option<ID<Universe>>)
pub fn default_universe(&self) -> Option<&Universe>
pub fn default_universe_mut(&mut self) -> Option<&mut Universe>
pub fn universe(&self, id: ID<Universe>) -> Option<&Universe>
pub fn universe_mut(&mut self, id: ID<Universe>) -> Option<&mut Universe>
pub fn universe_ids(&self) -> impl Iterator<Item = ID<Universe>>
pub fn universes(&self) -> impl Iterator<Item = &Universe>
pub fn universes_mut(&mut self) -> impl Iterator<Item = &mut Universe>
pub fn universes_with_ids( &self ) -> impl Iterator<Item = (ID<Universe>, &Universe)>
pub fn universes_with_ids_mut( &mut self ) -> impl Iterator<Item = (ID<Universe>, &mut Universe)>
pub fn insert_pipeline<T>( &mut self, pipeline: T ) -> ID<PhantomData<dyn PipelineEngine + Sync + Send>>where T: PipelineEngine + 'static + Send + Sync,
pub fn remove_pipeline( &mut self, id: ID<PhantomData<dyn PipelineEngine + Sync + Send>> )
pub fn pipeline_ids( &self ) -> impl Iterator<Item = ID<PhantomData<dyn PipelineEngine + Sync + Send>>>
pub fn bind( &mut self, universe: ID<Universe>, pipeline: ID<PhantomData<dyn PipelineEngine + Sync + Send>> )
pub fn unbind(&mut self, universe: ID<Universe>)
pub fn unbind_all(&mut self)
pub fn is_running(&self) -> bool
pub fn process(&mut self)
Trait Implementations§
source§impl Default for Multiverse
impl Default for Multiverse
source§fn default() -> Multiverse
fn default() -> Multiverse
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for Multiverse
impl Send for Multiverse
impl Sync for Multiverse
impl Unpin for Multiverse
impl !UnwindSafe for Multiverse
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more