#[repr(C)]pub struct PoolStateTable {
pub count: u8,
pub _pad: [u8; 15],
pub states: [PoolAmm; 32],
}Expand description
Table of raw AMM states, parallel to PoolBooks.
Written to WASM memory at POOL_STATE_TABLE_WASM_OFFSET (0x23000).
Conditional write: skipped when count == 0.
Fields§
§count: u8Number of valid entries (matches PoolBooks.pool_ct).
_pad: [u8; 15]Padding to align states at 16-byte boundary (u128 fields in PoolAmm).
states: [PoolAmm; 32]Per-pool AMM states. states[i] corresponds to PoolBooks.metas[i].
Implementations§
Trait Implementations§
Source§impl Clone for PoolStateTable
impl Clone for PoolStateTable
Source§fn clone(&self) -> PoolStateTable
fn clone(&self) -> PoolStateTable
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 Default for PoolStateTable
impl Default for PoolStateTable
impl Copy for PoolStateTable
Auto Trait Implementations§
impl Freeze for PoolStateTable
impl RefUnwindSafe for PoolStateTable
impl Send for PoolStateTable
impl Sync for PoolStateTable
impl Unpin for PoolStateTable
impl UnsafeUnpin for PoolStateTable
impl UnwindSafe for PoolStateTable
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