Expand description
Types that detect when their internal data mutate.
Structs§
- Mut
- Unique mutable borrow of an entity’s component
- MutUntyped
- Unique mutable borrow of resources or an entity’s component.
- NonSend
Mut - Unique borrow of a non-
Sendresource. - Ref
- Shared borrow of an entity’s component with access to change detection.
Similar to
Mutbut is immutable and so doesn’t require unique access. - Res
- Shared borrow of a
Resource. - ResMut
- Unique mutable borrow of a
Resource.
Constants§
- CHECK_
TICK_ THRESHOLD - The (arbitrarily chosen) minimum number of world tick increments between
check_tickscans. - MAX_
CHANGE_ AGE - The maximum change tick difference that won’t overflow before the next
check_tickscan.
Traits§
- Detect
Changes - Types that can read change detection information.
This change detection is controlled by
DetectChangesMuttypes such asResMut. - Detect
Changes Mut - Types that implement reliable change detection.