We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eb54d0 commit 38f270cCopy full SHA for 38f270c
crates/bevy_mod_scripting_core/src/extractors.rs
@@ -115,9 +115,11 @@ unsafe impl<T: Resource + Default> SystemParam for ResScope<'_, T> {
115
///
116
/// # Safety
117
/// - unsafe to use this in a way which violates the invariants on [`ResScope`].
118
+/// - This is hidden from docs for a reason, rust doesn't allow expressing `type signature unsafety`
119
+/// - It is only safe to use when other system parameters do not create aliasing references inside their `get_param` calls
120
#[derive(SystemParam)]
121
#[doc(hidden)]
-pub(crate) struct EventReaderScope<'s, T: Event> {
122
+pub struct EventReaderScope<'s, T: Event> {
123
events: ResScope<'s, Events<T>>,
124
reader: Local<'s, EventCursor<T>>,
125
}
0 commit comments