We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9c713d commit ecf4c52Copy full SHA for ecf4c52
crates/bevy_asset/src/reflect.rs
@@ -18,6 +18,9 @@ pub struct ReflectAsset {
18
assets_resource_type_id: TypeId,
19
20
get: fn(&World, HandleUntyped) -> Option<&dyn PartialReflect>,
21
+ // SAFETY:
22
+ // - may only be called with a [`IteriorMutableWorld`] which can be used to access the corresponding `Assets<T>` resource mutably
23
+ // - may only be used to access **at most one** access at once
24
get_unchecked_mut:
25
unsafe fn(UnsafeWorldCell<'_>, HandleUntyped) -> Option<&mut dyn PartialReflect>,
26
add: fn(&mut World, &dyn PartialReflect) -> HandleUntyped,
0 commit comments