#[repr(C)]pub struct GridPayload {
pub element_descriptor: *const TypeDescriptor,
pub items: Vec<GcRef>,
pub width: usize,
}Expand description
The Grid[T] payload: a row-major sequence of GcRefs plus the fixed
column count (width). items.len() == width * height. Mirrors VecPayload
but carries rectangular shape so indexing and neighbourhood walks are cheap.
Fields§
§element_descriptor: *const TypeDescriptorThe descriptor for every cell in items, or null for “not told yet” —
VecPayload::element_descriptor’s contract exactly. Read it through
[ElementSeq::element].
items: Vec<GcRef>Row-major cells: items[row * width + col].
width: usizeThe number of columns (all rows share this width).
Auto Trait Implementations§
impl !RefUnwindSafe for GridPayload
impl !Send for GridPayload
impl !Sync for GridPayload
impl !UnwindSafe for GridPayload
impl Freeze for GridPayload
impl Unpin for GridPayload
impl UnsafeUnpin for GridPayload
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