File tree 1 file changed +12
-6
lines changed
crates/bevy_ecs/src/system
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -118,12 +118,18 @@ pub unsafe trait SystemParamState: Send + Sync + 'static {
118
118
119
119
/// # Safety
120
120
///
121
- /// This function must:
122
- /// - return [`WorldAccessLevel::Exclusive`] if [`get_param`](SystemParamFetch::get_param)
123
- /// constructs a [`&mut World`](World).
124
- /// - return [`WorldAccessLevel::Shared`] if
125
- /// [`get_param`](SystemParamFetch::get_param) constructs a [`&World`](World).
126
- /// - **panic** if [`get_param`](SystemParamFetch::get_param) would construct both at the same time.
121
+ /// This function must return:
122
+ /// - [`WorldAccessLevel::Exclusive`] if [`get_param`](SystemParamFetch::get_param)
123
+ /// internally constructs a [`&mut World`](World) (or a type that can make one).
124
+ /// - [`WorldAccessLevel::Shared`] if [`get_param`](SystemParamFetch::get_param)
125
+ /// internally constructs a [`&World`](World) (or a type that can make one).
126
+ /// - [`WorldAccessLevel::None`] otherwise.
127
+ ///
128
+ /// # Panics
129
+ ///
130
+ /// During system construction, [`SystemParam`] tuples and implementations
131
+ /// produced by the [`#[derive(SystemParam)`](`derive@super::SystemParam`)
132
+ /// macro will panic on invalid combinations that would be undefined behavior.
127
133
fn world_access_level ( ) -> WorldAccessLevel ;
128
134
}
129
135
You can’t perform that action at this time.
0 commit comments