pub struct PageIndex {
pub page_id: u32,
pub row_index: u32,
}
Expand description
A logical address pointing to an entity’s component data within a specific ComponentPage
.
This struct is the core of the relational aspect of our ECS. It decouples an entity’s identity from the physical storage of its data by acting as a coordinate.
Fields§
§page_id: u32
The unique identifier of the ComponentPage
that stores the component data.
row_index: u32
The index of the row within the page where this entity’s components are stored.
Trait Implementations§
impl Copy for PageIndex
impl Eq for PageIndex
impl StructuralPartialEq for PageIndex
Auto Trait Implementations§
impl Freeze for PageIndex
impl RefUnwindSafe for PageIndex
impl Send for PageIndex
impl Sync for PageIndex
impl Unpin for PageIndex
impl UnwindSafe for PageIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more