pub struct AllocPolicy4096;Expand description
Entity allocation policy for chunks of size 4096.
Trait Implementations§
Source§impl IAllocPolicy for AllocPolicy4096
impl IAllocPolicy for AllocPolicy4096
Source§const CHUNK_SIZE_LOG2: usize = 12
const CHUNK_SIZE_LOG2: usize = 12
Chunk size log2 (e.g., 7 for 128, 8 for 256, etc.)
Source§const CHUNK_SIZE: usize
const CHUNK_SIZE: usize
Chunk size (e.g., 128, 256, etc.)
Source§const BITSET_LEN: usize
const BITSET_LEN: usize
Bitset length (number of u64 units in the bitset)
Source§const UNIT_ID_MASK: usize
const UNIT_ID_MASK: usize
Unit ID mask, usually CHUNK_SIZE - 1
Source§type BitAlloc = SummaryAlloc<64>
type BitAlloc = SummaryAlloc<64>
Bit allocator type.
MTB::Entity chooses different bit allocators
for different chunk sizes.Auto Trait Implementations§
impl Freeze for AllocPolicy4096
impl RefUnwindSafe for AllocPolicy4096
impl Send for AllocPolicy4096
impl Sync for AllocPolicy4096
impl Unpin for AllocPolicy4096
impl UnwindSafe for AllocPolicy4096
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