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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.