pub struct StateLayout {
pub overall: Layout,
transition: TransitionLayout,
pub first_sparse_set: SparseSetLayout,
pub second_sparse_set: SparseSetLayout,
pattern: PatternLayout,
look: LookLayout,
}
Expand description
This type will be used to plan the WASM memory layout and precompute the ptr/offsets of various data structures.
Fields§
§overall: Layout
The overall memory layout encompassing all state-related data structures.
transition: TransitionLayout
§first_sparse_set: SparseSetLayout
§second_sparse_set: SparseSetLayout
§pattern: PatternLayout
§look: LookLayout
Implementations§
Source§impl StateLayout
impl StateLayout
Sourcepub fn new(ctx: &mut CompileContext) -> Result<Self, LayoutError>
pub fn new(ctx: &mut CompileContext) -> Result<Self, LayoutError>
Creates a new StateLayout
by sequentially arranging layouts for
various components.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StateLayout
impl RefUnwindSafe for StateLayout
impl Send for StateLayout
impl Sync for StateLayout
impl Unpin for StateLayout
impl UnwindSafe for StateLayout
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