pub struct ParentData<'a, P>{ /* private fields */ }Expand description
Utility struct for the data needed by the Hierarchy maintain.
Trait Implementations§
Source§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>,
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>,
Source§fn fetch(world: &'a World) -> Self
fn fetch(world: &'a World) -> Self
Fetches the system data from
World. Note that this is only specified
for one concrete lifetime 'a, you need to implement the
SystemData trait for every possible lifetime.Auto Trait Implementations§
impl<'a, P> Freeze for ParentData<'a, P>
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§
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> DynamicSystemData<'a> for Twhere
T: SystemData<'a>,
impl<'a, T> DynamicSystemData<'a> for Twhere
T: SystemData<'a>,
Source§type Accessor = StaticAccessor<T>
type Accessor = StaticAccessor<T>
The accessor of the
SystemData, which specifies the read and write
dependencies and does the fetching.Source§fn setup(_: &StaticAccessor<T>, world: &mut World)
fn setup(_: &StaticAccessor<T>, world: &mut World)
Sets up
World for fetching this system data.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more