Enum wasmparser::ComponentFuncResult
source · pub enum ComponentFuncResult<'a> {
Unnamed(ComponentValType),
Named(Box<[(&'a str, ComponentValType)]>),
}
Expand description
Represents the result type of a component function.
Variants
Unnamed(ComponentValType)
The function returns a singular, unnamed type.
Named(Box<[(&'a str, ComponentValType)]>)
The function returns zero or more named types.
Implementations
sourceimpl ComponentFuncResult<'_>
impl ComponentFuncResult<'_>
sourcepub fn type_count(&self) -> usize
pub fn type_count(&self) -> usize
Gets the count of types returned by the function.
Trait Implementations
sourceimpl<'a> Clone for ComponentFuncResult<'a>
impl<'a> Clone for ComponentFuncResult<'a>
sourcefn clone(&self) -> ComponentFuncResult<'a>
fn clone(&self) -> ComponentFuncResult<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<'a> RefUnwindSafe for ComponentFuncResult<'a>
impl<'a> Send for ComponentFuncResult<'a>
impl<'a> Sync for ComponentFuncResult<'a>
impl<'a> Unpin for ComponentFuncResult<'a>
impl<'a> UnwindSafe for ComponentFuncResult<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more