Struct amethyst_core::Pausable
source · pub struct Pausable<S, V> { /* private fields */ }
Expand description
A system that is enabled when U
has a specific value.
Trait Implementations
sourceimpl<'s, S, V: 'static> System<'s> for Pausable<S, V>where
S::SystemData: SystemData<'s>,
S: System<'s>,
V: Send + Sync + Default + PartialEq,
impl<'s, S, V: 'static> System<'s> for Pausable<S, V>where
S::SystemData: SystemData<'s>,
S: System<'s>,
V: Send + Sync + Default + PartialEq,
type SystemData = (Read<'s, V, DefaultProvider>, <S as System<'s>>::SystemData)
type SystemData = (Read<'s, V, DefaultProvider>, <S as System<'s>>::SystemData)
The resource bundle required to execute this system. Read more
sourcefn run(&mut self, data: Self::SystemData)
fn run(&mut self, data: Self::SystemData)
Executes the system with the required system
data. Read more
sourcefn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTime
Returns a hint how long the system needs for running.
This is used to optimize the way they’re executed (might
allow more parallelization). Read more
sourcefn accessor<'b>(&'b self) -> AccessorCow<'a, 'b, Self>
fn accessor<'b>(&'b self) -> AccessorCow<'a, 'b, Self>
Return the accessor from the
SystemData
.Auto Trait Implementations
impl<S, V> RefUnwindSafe for Pausable<S, V>where
S: RefUnwindSafe,
V: RefUnwindSafe,
impl<S, V> Send for Pausable<S, V>where
S: Send,
V: Send,
impl<S, V> Sync for Pausable<S, V>where
S: Sync,
V: Sync,
impl<S, V> Unpin for Pausable<S, V>where
S: Unpin,
V: Unpin,
impl<S, V> UnwindSafe for Pausable<S, V>where
S: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere
T: Any,
fn get_type_id(&self) -> TypeId
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<'a, T> RunWithPool<'a> for Twhere
T: System<'a>,
impl<'a, T> RunWithPool<'a> for Twhere
T: System<'a>,
sourcefn run(&mut self, res: &'a Resources, _: &ThreadPool)
fn run(&mut self, res: &'a Resources, _: &ThreadPool)
Runs the system/group of systems. Possibly in parallel depending
on how the structure is set up. Read more
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.