Struct specs_hierarchy::HierarchySystem
source · pub struct HierarchySystem<P> { /* private fields */ }
Expand description
System for maintaining a Hierarchy
resource.
Type parameters:
P
: Component type that providesParent
links for the maintainedHierarchy
Implementations
sourceimpl<P> HierarchySystem<P>
impl<P> HierarchySystem<P>
Trait Implementations
sourceimpl<'a, P> System<'a> for HierarchySystem<P>where
P: Component + Parent + Send + Sync + 'static,
P::Storage: Tracked,
impl<'a, P> System<'a> for HierarchySystem<P>where
P: Component + Parent + Send + Sync + 'static,
P::Storage: Tracked,
type SystemData = (ParentData<'a, P>, Write<'a, Hierarchy<P>, HierarchySetupHandler<P>>)
type SystemData = (ParentData<'a, P>, Write<'a, Hierarchy<P>, HierarchySetupHandler<P>>)
The resource bundle required to execute this system. Read more
sourcefn run(&mut self, (data, hierarchy): Self::SystemData)
fn run(&mut self, (data, hierarchy): 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<P> RefUnwindSafe for HierarchySystem<P>where
P: RefUnwindSafe,
impl<P> Send for HierarchySystem<P>where
P: Send,
impl<P> Sync for HierarchySystem<P>where
P: Sync,
impl<P> Unpin for HierarchySystem<P>where
P: Unpin,
impl<P> UnwindSafe for HierarchySystem<P>where
P: 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