Struct specs_hierarchy::ParentData
source · pub struct ParentData<'a, P>where
P: Component + Parent,
P::Storage: Tracked,{ /* private fields */ }
Expand description
Utility struct for the data needed by the Hierarchy
maintain.
Trait Implementations
sourceimpl<'a, P> SystemData<'a> for ParentData<'a, P>where
P: Component + Parent,
P::Storage: Tracked,
Entities<'a>: SystemData<'a>,
ReadStorage<'a, P>: SystemData<'a>,
impl<'a, P> SystemData<'a> for ParentData<'a, P>where
P: Component + Parent,
P::Storage: Tracked,
Entities<'a>: SystemData<'a>,
ReadStorage<'a, P>: SystemData<'a>,
sourcefn fetch(res: &'a Resources) -> Self
fn fetch(res: &'a Resources) -> Self
Fetches the system data from
Resources
. Note that this is only specified for one concrete
lifetime 'a
, you need to implement the SystemData
trait for every possible
lifetime. Read moresourcefn reads() -> Vec<ResourceId>
fn reads() -> Vec<ResourceId>
Returns all read dependencies as fetched from
Self::fetch
. Read moresourcefn writes() -> Vec<ResourceId>
fn writes() -> Vec<ResourceId>
Returns all write dependencies as fetched from
Self::fetch
. Read moreAuto Trait Implementations
impl<'a, P> !RefUnwindSafe for ParentData<'a, P>
impl<'a, P> Send for ParentData<'a, P>where
P: Send,
impl<'a, P> Sync for ParentData<'a, P>where
P: Sync,
impl<'a, P> Unpin for ParentData<'a, P>where
P: Unpin,
impl<'a, P> !UnwindSafe for ParentData<'a, P>
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
sourceimpl<'a, T> DynamicSystemData<'a> for Twhere
T: SystemData<'a>,
impl<'a, T> DynamicSystemData<'a> for Twhere
T: SystemData<'a>,
type Accessor = StaticAccessor<T>
type Accessor = StaticAccessor<T>
The accessor of the
SystemData
, which specifies the read and write dependencies and does
the fetching. Read moresourcefn setup(_: &StaticAccessor<T>, res: &mut Resources)
fn setup(_: &StaticAccessor<T>, res: &mut Resources)
Sets up
Resources
for fetching this system data.