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,7 +29,7 @@ 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
32
+
/// - `location` must refer to an archetype that contains `entity`
33
33
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
34
34
/// - the caller must ensure that no aliasing rules are violated
35
35
#[inline]
@@ -49,7 +49,7 @@ impl Storages {
49
49
/// Get a raw pointer to a particular [`Component`](crate::component::Component) and its [`ComponentTicks`]
50
50
///
51
51
/// # Safety
52
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
52
+
/// - `location` must refer to an archetype that contains `entity`
53
53
/// - `component_id` must be valid
54
54
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
55
55
/// - the caller must ensure that no aliasing rules are violated
@@ -88,7 +88,7 @@ impl Storages {
88
88
/// Get a raw pointer to a particular [`Component`](crate::component::Component) on a particular [`Entity`], identified by the component's type
89
89
///
90
90
/// # Safety
91
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
91
+
/// - `location` must refer to an archetype that contains `entity`
92
92
/// the archetype
93
93
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
94
94
/// - the caller must ensure that no aliasing rules are violated
@@ -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` must be valid
115
115
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
@@ -144,7 +144,7 @@ impl Storages {
144
144
/// Get a raw pointer to the [`ComponentTicks`] on a particular [`Entity`], identified by the component's [`TypeId`]
145
145
///
146
146
/// # Safety
147
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
147
+
/// - `location` must refer to an archetype that contains `entity`
148
148
/// the archetype
149
149
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
150
150
/// - the caller must ensure that no aliasing rules are violated
@@ -165,7 +165,7 @@ impl Storages {
165
165
/// Get a raw pointer to the [`ComponentTicks`] on a particular [`Entity`]
166
166
///
167
167
/// # Safety
168
-
/// - `entity_location` must be within bounds of the given archetype and `entity` must exist inside
168
+
/// - `location` must refer to an archetype that contains `entity`
169
169
/// the archetype
170
170
/// - `component_id` must be valid
171
171
/// - `Archetypes` and `Components` must come from the world this of this `Storages`
0 commit comments