You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/bevy_ecs/src/storage/mod.rs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,8 @@ impl Storages {
30
30
/// Get a raw pointer to a particular [`Component`](crate::component::Component) and its [`ComponentTicks`] identified by their [`TypeId`]
31
31
///
32
32
/// # Safety
33
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
34
33
/// - `storage_type` must accurately reflect where the components for `component_id` are stored.
34
+
/// - `location` must refer to an archetype that contains `entity`
35
35
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
36
36
/// - the caller must ensure that no aliasing rules are violated
37
37
#[inline]
@@ -52,7 +52,7 @@ impl Storages {
52
52
/// Get a raw pointer to a particular [`Component`](crate::component::Component) and its [`ComponentTicks`]
53
53
///
54
54
/// # Safety
55
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
55
+
/// - `location` must refer to an archetype that contains `entity`
56
56
/// - `component_id` must be valid
57
57
/// - `storage_type` must accurately reflect where the components for `component_id` are stored.
58
58
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
@@ -87,7 +87,7 @@ impl Storages {
87
87
/// Get a raw pointer to a particular [`Component`](crate::component::Component) on a particular [`Entity`], identified by the component's type
88
88
///
89
89
/// # Safety
90
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
90
+
/// - `location` must refer to an archetype that contains `entity`
91
91
/// the archetype
92
92
/// - `storage_type` must accurately reflect where the components for `component_id` are stored.
93
93
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
@@ -110,7 +110,7 @@ impl Storages {
110
110
/// Get a raw pointer to a particular [`Component`](crate::component::Component) on a particular [`Entity`] in the provided [`World`](crate::world::World).
111
111
///
112
112
/// # Safety
113
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
113
+
/// - `location` must refer to an archetype that contains `entity`
114
114
/// the archetype
115
115
/// - `component_id`
116
116
/// - `storage_type` must accurately reflect where the components for `component_id` are stored.
@@ -140,7 +140,7 @@ impl Storages {
140
140
/// Get a raw pointer to the [`ComponentTicks`] on a particular [`Entity`], identified by the component's [`TypeId`]
141
141
///
142
142
/// # Safety
143
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
143
+
/// - `location` must refer to an archetype that contains `entity`
144
144
/// the archetype
145
145
/// - `storage_type` must accurately reflect where the components for `component_id` are stored.
146
146
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
@@ -163,7 +163,7 @@ impl Storages {
163
163
/// Get a raw pointer to the [`ComponentTicks`] on a particular [`Entity`]
164
164
///
165
165
/// # Safety
166
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
166
+
/// - `location` must refer to an archetype that contains `entity`
167
167
/// the archetype
168
168
/// - `component_id` must be valid
169
169
/// - `storage_type` must accurately reflect where the components for `component_id` are stored.
0 commit comments