pub fn size_of(index: usize) -> usizeExpand description
Slot size for a class index.
ยงExamples
use kevy_alloc::class::{index_of, size_of};
// Classes ascend, so a bigger request never lands in a smaller slot.
let small = size_of(index_of(8, 1).unwrap());
let big = size_of(index_of(200, 1).unwrap());
assert!(small <= big);