Expand description
Types that detect when their internal data mutate.
Structs§
- Mut
- Unique mutable borrow of an entity’s component or of a resource.
- MutUntyped
- Unique mutable borrow of resources or an entity’s component.
- NonSend
Mut - Unique borrow of a non-
Send
resource. - Ref
- Shared borrow of an entity’s component with access to change detection.
Similar to
Mut
but 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_tick
scans. - MAX_
CHANGE_ AGE - The maximum change tick difference that won’t overflow before the next
check_tick
scan.
Traits§
- Detect
Changes - Types that can read change detection information.
This change detection is controlled by
DetectChangesMut
types such asResMut
. - Detect
Changes Mut - Types that implement reliable change detection.