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: u32The unique identifier of the ComponentPage that stores the component data.
row_index: u32The index of the row within the page where this entity’s components are stored.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for PageIndex
impl<'__de, __Context> BorrowDecode<'__de, __Context> for PageIndex
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
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