pub enum HierarchyEvent {
Modified(Entity),
Removed(Entity),
}Expand description
Hierarchy events.
These are the events that are sent through the internal EventChannel in the Hierarchy
resource.
Variants§
Modified(Entity)
Entity was either inserted or modified in the Hierarchy
Removed(Entity)
Entity was removed from the Hierarchy. Note that this does not mean the Parent
component was removed from the component storage, just that the Entity will no longer be
considered to be a part of the Hierarchy.
Trait Implementations§
Source§impl Clone for HierarchyEvent
impl Clone for HierarchyEvent
Source§fn clone(&self) -> HierarchyEvent
fn clone(&self) -> HierarchyEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HierarchyEvent
impl Debug for HierarchyEvent
Source§impl Hash for HierarchyEvent
impl Hash for HierarchyEvent
Source§impl PartialEq for HierarchyEvent
impl PartialEq for HierarchyEvent
impl Copy for HierarchyEvent
impl Eq for HierarchyEvent
impl StructuralPartialEq for HierarchyEvent
Auto Trait Implementations§
impl Freeze for HierarchyEvent
impl RefUnwindSafe for HierarchyEvent
impl Send for HierarchyEvent
impl Sync for HierarchyEvent
impl Unpin for HierarchyEvent
impl UnwindSafe for HierarchyEvent
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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