Struct ComponentFunc
pub struct ComponentFunc(/* private fields */);Expand description
Component function type
Implementations§
§impl ComponentFunc
impl ComponentFunc
pub fn params(&self) -> impl ExactSizeIterator
pub fn params(&self) -> impl ExactSizeIterator
Iterates over types of function parameters and names.
pub fn results(&self) -> impl ExactSizeIterator
pub fn results(&self) -> impl ExactSizeIterator
Iterates over types of function results
Trait Implementations§
§impl Clone for ComponentFunc
impl Clone for ComponentFunc
§fn clone(&self) -> ComponentFunc
fn clone(&self) -> ComponentFunc
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 more§impl Debug for ComponentFunc
impl Debug for ComponentFunc
§impl WasmFunc for ComponentFunc
impl WasmFunc for ComponentFunc
§fn params(
&self,
) -> Box<dyn Iterator<Item = <ComponentFunc as WasmFunc>::Type> + '_>
fn params( &self, ) -> Box<dyn Iterator<Item = <ComponentFunc as WasmFunc>::Type> + '_>
Returns an iterator of the func’s parameter types.
§fn results(
&self,
) -> Box<dyn Iterator<Item = <ComponentFunc as WasmFunc>::Type> + '_>
fn results( &self, ) -> Box<dyn Iterator<Item = <ComponentFunc as WasmFunc>::Type> + '_>
Returns an iterator of the func’s result types.
Auto Trait Implementations§
impl Freeze for ComponentFunc
impl RefUnwindSafe for ComponentFunc
impl Send for ComponentFunc
impl Sync for ComponentFunc
impl Unpin for ComponentFunc
impl UnsafeUnpin for ComponentFunc
impl UnwindSafe for ComponentFunc
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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