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
@@ -29,8 +29,8 @@ impl Storages {
29
29
/// Get a raw pointer to a particular [`Component`](crate::component::Component) and its [`ComponentTicks`] identified by their [`TypeId`]
30
30
///
31
31
/// # Safety
32
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
33
32
/// - `storage_type` must accurately reflect where the components for `component_id` are stored.
33
+
/// - `location` must refer to an archetype that contains `entity`
34
34
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
35
35
/// - the caller must ensure that no aliasing rules are violated
36
36
#[inline]
@@ -51,7 +51,7 @@ impl Storages {
51
51
/// Get a raw pointer to a particular [`Component`](crate::component::Component) and its [`ComponentTicks`]
52
52
///
53
53
/// # Safety
54
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
54
+
/// - `location` must refer to an archetype that contains `entity`
55
55
/// - `component_id` must be valid
56
56
/// - `storage_type` must accurately reflect where the components for `component_id` are stored.
57
57
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
@@ -86,7 +86,7 @@ impl Storages {
86
86
/// Get a raw pointer to a particular [`Component`](crate::component::Component) on a particular [`Entity`], identified by the component's type
87
87
///
88
88
/// # Safety
89
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
89
+
/// - `location` must refer to an archetype that contains `entity`
90
90
/// the archetype
91
91
/// - `storage_type` must accurately reflect where the components for `component_id` are stored.
92
92
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
@@ -109,7 +109,7 @@ impl Storages {
109
109
/// Get a raw pointer to a particular [`Component`](crate::component::Component) on a particular [`Entity`] in the provided [`World`](crate::world::World).
110
110
///
111
111
/// # Safety
112
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
112
+
/// - `location` must refer to an archetype that contains `entity`
113
113
/// the archetype
114
114
/// - `component_id`
115
115
/// - `storage_type` must accurately reflect where the components for `component_id` are stored.
@@ -139,7 +139,7 @@ impl Storages {
139
139
/// Get a raw pointer to the [`ComponentTicks`] on a particular [`Entity`], identified by the component's [`TypeId`]
140
140
///
141
141
/// # Safety
142
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
142
+
/// - `location` must refer to an archetype that contains `entity`
143
143
/// the archetype
144
144
/// - `storage_type` must accurately reflect where the components for `component_id` are stored.
145
145
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
@@ -162,7 +162,7 @@ impl Storages {
162
162
/// Get a raw pointer to the [`ComponentTicks`] on a particular [`Entity`]
163
163
///
164
164
/// # Safety
165
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
165
+
/// - `location` must refer to an archetype that contains `entity`
166
166
/// the archetype
167
167
/// - `component_id` must be valid
168
168
/// - `storage_type` must accurately reflect where the components for `component_id` are stored.
0 commit comments