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 @@ -133,12 +133,18 @@ pub unsafe trait SystemParamState: Send + Sync + 'static {
133
133
134
134
/// # Safety
135
135
///
136
- /// This function must:
137
- /// - return [`WorldAccessLevel::Exclusive`] if [`get_param`](SystemParamFetch::get_param)
138
- /// constructs a [`&mut World`](World).
139
- /// - return [`WorldAccessLevel::Shared`] if
140
- /// [`get_param`](SystemParamFetch::get_param) constructs a [`&World`](World).
141
- /// - **panic** if [`get_param`](SystemParamFetch::get_param) would construct both at the same time.
136
+ /// This function must return:
137
+ /// - [`WorldAccessLevel::Exclusive`] if [`get_param`](SystemParamFetch::get_param)
138
+ /// internally constructs a [`&mut World`](World) (or a type that can make one).
139
+ /// - [`WorldAccessLevel::Shared`] if [`get_param`](SystemParamFetch::get_param)
140
+ /// internally constructs a [`&World`](World) (or a type that can make one).
141
+ /// - [`WorldAccessLevel::None`] otherwise.
142
+ ///
143
+ /// # Panics
144
+ ///
145
+ /// During system construction, [`SystemParam`] tuples and implementations
146
+ /// produced by the [`#[derive(SystemParam)`](`derive@super::SystemParam`)
147
+ /// macro will panic on invalid combinations that would be undefined behavior.
142
148
fn world_access_level ( ) -> WorldAccessLevel ;
143
149
}
144
150
You can’t perform that action at this time.
0 commit comments