Skip to content

Commit

Permalink
doc(iter): add doc for fns world and real_world
Browse files Browse the repository at this point in the history
  • Loading branch information
Indra-db committed Jan 10, 2025
1 parent 8633e4b commit 2c72543
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flecs_ecs/src/core/table/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ impl<'a, const IS_RUN: bool, P> TableIter<'a, IS_RUN, P>
where
P: ComponentId,
{
/// The world. Can point to stage when in deferred/readonly mode.
pub fn world(&self) -> WorldRef<'a> {
unsafe { WorldRef::from_ptr(self.iter.world) }
}

/// Actual world. Never points to a stage.
pub fn real_world(&self) -> WorldRef<'a> {
unsafe { WorldRef::from_ptr(self.iter.real_world) }
}
Expand Down

0 comments on commit 2c72543

Please sign in to comment.