File tree 1 file changed +8
-1
lines changed
crates/bevy_ecs/src/query
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ use std::{cell::UnsafeCell, marker::PhantomData};
143
143
/// # bevy_ecs::system::assert_is_system(my_system);
144
144
/// ```
145
145
///
146
- /// Mutable queries will also have a ReadOnly version derived:
146
+ /// Mutable queries will also have a read only version derived:
147
147
/// ```rust
148
148
/// # use bevy_ecs::prelude::*;
149
149
/// use bevy_ecs::query::WorldQuery;
@@ -354,6 +354,13 @@ pub trait WorldQueryGats<'world> {
354
354
///
355
355
/// Every type that implements [`WorldQuery`] have their associated [`WorldQuery::Fetch`](WorldQueryGats::Fetch) and
356
356
/// [`WorldQuery::State`] types that are essential for fetching component data.
357
+ ///
358
+ /// Safety
359
+ ///
360
+ /// Implementor must ensure that [`Fetch::update_component_access`] and
361
+ /// [`Fetch::update_archetype_component_access`] exactly reflects the results of
362
+ /// [`FetchState::matches_component_set`], [`Fetch::archetype_fetch`], and
363
+ /// [`Fetch::table_fetch`].
357
364
pub unsafe trait Fetch < ' world > : Sized {
358
365
type Item ;
359
366
type State : FetchState ;
You can’t perform that action at this time.
0 commit comments