pub enum TableInitialValue {
Null {
precomputed: Vec<FuncIndex>,
},
FuncRef(FuncIndex),
}
Expand description
Initial value for all elements in a table.
Variants§
Null
Fields
§
precomputed: Vec<FuncIndex>
A precomputed image of table initializers for this table.
This image is constructed during try_func_table_init
and
null-initialized elements are represented with
FuncIndex::reserved_value()
. Note that this image is empty by
default and may not encompass the entire span of the table in which
case the elements are initialized to null.
Initialize each table element to null, optionally setting some elements to non-null given the precomputed image.
FuncRef(FuncIndex)
Initialize each table element to the function reference given
by the FuncIndex
.
Trait Implementations§
source§impl Clone for TableInitialValue
impl Clone for TableInitialValue
source§fn clone(&self) -> TableInitialValue
fn clone(&self) -> TableInitialValue
Returns a copy 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 Debug for TableInitialValue
impl Debug for TableInitialValue
source§impl<'de> Deserialize<'de> for TableInitialValue
impl<'de> Deserialize<'de> for TableInitialValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for TableInitialValue
impl Send for TableInitialValue
impl Sync for TableInitialValue
impl Unpin for TableInitialValue
impl UnwindSafe for TableInitialValue
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