pub struct ComponentStartFunction {
pub func_index: u32,
pub arguments: Box<[u32]>,
pub results: u32,
}Expand description
Represents the start function in a WebAssembly component.
Fields§
§func_index: u32The index to the start function.
arguments: Box<[u32]>The start function arguments.
The arguments are specified by value index.
results: u32The number of expected results for the start function.
Trait Implementations§
Source§impl Clone for ComponentStartFunction
Available on crate feature component-model only.
impl Clone for ComponentStartFunction
Available on crate feature
component-model only.Source§fn clone(&self) -> ComponentStartFunction
fn clone(&self) -> ComponentStartFunction
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 Debug for ComponentStartFunction
Available on crate feature component-model only.
impl Debug for ComponentStartFunction
Available on crate feature
component-model only.Source§impl<'a> FromReader<'a> for ComponentStartFunction
Available on crate feature component-model only.
impl<'a> FromReader<'a> for ComponentStartFunction
Available on crate feature
component-model only.Source§fn from_reader(reader: &mut BinaryReader<'a>) -> Result<Self>
fn from_reader(reader: &mut BinaryReader<'a>) -> Result<Self>
Attempts to read
Self from the provided binary reader, returning an
error if it is unable to do so.Auto Trait Implementations§
impl Freeze for ComponentStartFunction
impl RefUnwindSafe for ComponentStartFunction
impl Send for ComponentStartFunction
impl Sync for ComponentStartFunction
impl Unpin for ComponentStartFunction
impl UnwindSafe for ComponentStartFunction
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