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
/// This method does not prevent you from having two mutable pointers to the same data,
129
+
/// violating Rust's aliasing rules. To avoid this:
130
+
/// * Only call this method in an exclusive system to avoid sharing across threads (or use a
131
+
/// scheduler that enforces safe memory access).
132
+
/// * Don't call this method more than once in the same scope for a given [`Component`].
133
+
pubunsafefnreflect_unchecked_mut<'a>(
134
+
&self,
135
+
world:&'aWorld,
136
+
entity:Entity,
137
+
) -> Option<Mut<'a,dynReflect>>{
138
+
(self.0.reflect_unchecked_mut)(world, entity)
139
+
}
140
+
125
141
/// Gets the value of this [`Component`] type from entity from `source_world` and [applies](Self::apply()) it to the value of this [`Component`] type in entity in `destination_world`.
0 commit comments