Struct bones_lib::prelude::SingleSuccessSystems
pub struct SingleSuccessSystems {
pub systems_succeeded: HashSet<usize, BuildHasherDefault<FxHasher>>,
}
Expand description
Resource tracking which of single success systems in Session
’s SystemStages
have completed.
Success is tracked to
Fields§
§systems_succeeded: HashSet<usize, BuildHasherDefault<FxHasher>>
Set of indices of SystemStages
’s single success systems that have succeeded.
Implementations§
§impl SingleSuccessSystems
impl SingleSuccessSystems
pub fn reset(&mut self)
pub fn reset(&mut self)
Reset single success systems completion status. so they run again until success.
pub fn has_system_succeeded(&self, index: usize) -> bool
pub fn has_system_succeeded(&self, index: usize) -> bool
Check if system has completed
pub fn set_system_completed(&mut self, index: usize)
pub fn set_system_completed(&mut self, index: usize)
Mark system as completed.
Trait Implementations§
§impl Clone for SingleSuccessSystems
impl Clone for SingleSuccessSystems
§fn clone(&self) -> SingleSuccessSystems
fn clone(&self) -> SingleSuccessSystems
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Default for SingleSuccessSystems
impl Default for SingleSuccessSystems
§fn default() -> SingleSuccessSystems
fn default() -> SingleSuccessSystems
Returns the “default value” for a type. Read more
§impl HasSchema for SingleSuccessSystems
impl HasSchema for SingleSuccessSystems
§fn register_schema()
fn register_schema()
Register this schema with the global schema registry. Read more
§fn cast<T>(this: &Self) -> &Twhere
T: HasSchema,
fn cast<T>(this: &Self) -> &Twhere
T: HasSchema,
Cast a reference of this type to a reference of another type with the same memory layout. Read more
§fn try_cast<T>(this: &Self) -> Result<&T, SchemaMismatchError>where
T: HasSchema,
fn try_cast<T>(this: &Self) -> Result<&T, SchemaMismatchError>where
T: HasSchema,
Cast a reference of this type to a reference of another type with the same memory layout. Read more
§fn cast_mut<T>(this: &mut Self) -> &mut Twhere
T: HasSchema,
fn cast_mut<T>(this: &mut Self) -> &mut Twhere
T: HasSchema,
Cast a mutable reference of this type to a reference of another type with the same memory
layout. Read more
§fn try_cast_mut<T>(this: &mut Self) -> Result<&mut T, SchemaMismatchError>where
T: HasSchema,
fn try_cast_mut<T>(this: &mut Self) -> Result<&mut T, SchemaMismatchError>where
T: HasSchema,
Cast a mutable reference of this type to a reference of another type with the same memory
layout. Read more
§fn as_schema_ref(&self) -> SchemaRef<'_>where
Self: Sized,
fn as_schema_ref(&self) -> SchemaRef<'_>where
Self: Sized,
Converts a reference of
T
to a SchemaRef
§fn as_schema_mut(&mut self) -> SchemaRefMut<'_>where
Self: Sized,
fn as_schema_mut(&mut self) -> SchemaRefMut<'_>where
Self: Sized,
Converts a reference of
T
to a SchemaRefMut
Auto Trait Implementations§
impl Freeze for SingleSuccessSystems
impl RefUnwindSafe for SingleSuccessSystems
impl Send for SingleSuccessSystems
impl Sync for SingleSuccessSystems
impl Unpin for SingleSuccessSystems
impl UnwindSafe for SingleSuccessSystems
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &World) -> T
fn from_world(_world: &World) -> T
Creates
Self
using data from the given World
.