#[repr(C)]pub struct ecs_sparse_t {
pub dense: ecs_vec_t,
pub pages: ecs_vec_t,
pub size: i32,
pub count: i32,
pub max_id: u64,
pub allocator: *mut ecs_allocator_t,
pub page_allocator: *mut ecs_block_allocator_t,
}Fields§
§dense: ecs_vec_tDense array with indices to sparse array. The dense array stores both alive and not alive sparse indices. The ‘count’ member keeps track of which indices are alive.
pages: ecs_vec_tChunks with sparse arrays & data
size: i32Element size
count: i32Number of alive entries
max_id: u64Local max index (if no global is set)
allocator: *mut ecs_allocator_t§page_allocator: *mut ecs_block_allocator_tTrait Implementations§
Source§impl Clone for ecs_sparse_t
impl Clone for ecs_sparse_t
Source§fn clone(&self) -> ecs_sparse_t
fn clone(&self) -> ecs_sparse_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ecs_sparse_t
impl Debug for ecs_sparse_t
impl Copy for ecs_sparse_t
Auto Trait Implementations§
impl Freeze for ecs_sparse_t
impl RefUnwindSafe for ecs_sparse_t
impl !Send for ecs_sparse_t
impl !Sync for ecs_sparse_t
impl Unpin for ecs_sparse_t
impl UnwindSafe for ecs_sparse_t
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