pub struct SpatialRelation { /* private fields */ }Expand description
A System which keeps track of the spatial relation of entities
Implementations§
Trait Implementations§
Source§impl Debug for SpatialRelation
impl Debug for SpatialRelation
Source§impl<'world> System<'world> for SpatialRelation
impl<'world> System<'world> for SpatialRelation
Source§type SystemData = (Write<'world, Space>, Storage<'world, BoundingBox, Fetch<'world, MaskedStorage<BoundingBox>>>, Read<'world, EntitiesRes>)
type SystemData = (Write<'world, Space>, Storage<'world, BoundingBox, Fetch<'world, MaskedStorage<BoundingBox>>>, Read<'world, EntitiesRes>)
The resource bundle required to execute this system. Read more
Source§fn run(&mut self, data: Self::SystemData)
fn run(&mut self, data: Self::SystemData)
Executes the system with the required system
data.
Source§fn 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
Source§fn 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 Freeze for SpatialRelation
impl RefUnwindSafe for SpatialRelation
impl Send for SpatialRelation
impl Sync for SpatialRelation
impl Unpin for SpatialRelation
impl UnsafeUnpin for SpatialRelation
impl UnwindSafe for SpatialRelation
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<'a, T> RunWithPool<'a> for Twhere
T: System<'a>,
impl<'a, T> RunWithPool<'a> for Twhere
T: System<'a>,
Source§fn run(&mut self, world: &'a World, _: &ThreadPool)
fn run(&mut self, world: &'a World, _: &ThreadPool)
Runs the system/group of systems. Possibly in parallel depending
on how the structure is set up. Read more
Source§fn reads(&self, reads: &mut Vec<ResourceId>)
fn reads(&self, reads: &mut Vec<ResourceId>)
Accumulates the necessary read/shared resources from the
systems in this group.
Source§fn writes(&self, writes: &mut Vec<ResourceId>)
fn writes(&self, writes: &mut Vec<ResourceId>)
Accumulates the necessary write/exclusive resources from the
systems in this group.