pub struct WasmBufferDispatch {
pub const_data: Vec<u8>,
pub in_bytes: Vec<u8>,
pub regions: ArenaRegions,
}Expand description
A planned wasm buffer-protocol dispatch produced by
LlvmAotEvaluator::wasm_buffer_plan: the const-data prefix, the
packed input record, and the full arena region layout. The wasm host
lays const_data at arena offset 0 and in_bytes at
regions.in_ptr, invokes the entry symbol it emitted, then decodes
via LlvmAotEvaluator::wasm_buffer_decode.
Fields§
§const_data: Vec<u8>Const-pool blob; laid at arena offset 0 (before in_ptr).
in_bytes: Vec<u8>Packed input record; laid at regions.in_ptr.
regions: ArenaRegionsArena region boundaries (all arena-relative).
Trait Implementations§
Source§impl Clone for WasmBufferDispatch
impl Clone for WasmBufferDispatch
Source§fn clone(&self) -> WasmBufferDispatch
fn clone(&self) -> WasmBufferDispatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WasmBufferDispatch
impl RefUnwindSafe for WasmBufferDispatch
impl Send for WasmBufferDispatch
impl Sync for WasmBufferDispatch
impl Unpin for WasmBufferDispatch
impl UnsafeUnpin for WasmBufferDispatch
impl UnwindSafe for WasmBufferDispatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more