pub struct WitFunction {
pub name: String,
pub parameters: Vec<WitFunctionParameter>,
pub result: Option<WitFunctionResult>,
}Fields§
§name: String§parameters: Vec<WitFunctionParameter>§result: Option<WitFunctionResult>Implementations§
Source§impl WitFunction
impl WitFunction
pub fn is_constructor(&self) -> bool
pub fn is_method(&self) -> bool
pub fn is_static_method(&self) -> bool
Trait Implementations§
Source§impl Clone for WitFunction
impl Clone for WitFunction
Source§fn clone(&self) -> WitFunction
fn clone(&self) -> WitFunction
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 WitFunction
impl Debug for WitFunction
Source§impl<'de> Deserialize<'de> for WitFunction
impl<'de> Deserialize<'de> for WitFunction
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
Source§impl Hash for WitFunction
impl Hash for WitFunction
Source§impl PartialEq for WitFunction
impl PartialEq for WitFunction
Source§impl Serialize for WitFunction
impl Serialize for WitFunction
Source§impl WasmFunc for WitFunction
impl WasmFunc for WitFunction
Source§fn params(&self) -> Box<dyn Iterator<Item = Self::Type> + '_>
fn params(&self) -> Box<dyn Iterator<Item = Self::Type> + '_>
Returns an iterator of the func’s parameter types.
Source§fn param_names(&self) -> Box<dyn Iterator<Item = Cow<'_, str>> + '_>
fn param_names(&self) -> Box<dyn Iterator<Item = Cow<'_, str>> + '_>
Returns an iterator of the func’s parameter names. Must be the same
length as the iterator returned by
params or empty if this WasmFunc
impl does not support param names.impl Eq for WitFunction
impl StructuralPartialEq for WitFunction
Auto Trait Implementations§
impl Freeze for WitFunction
impl RefUnwindSafe for WitFunction
impl Send for WitFunction
impl Sync for WitFunction
impl Unpin for WitFunction
impl UnsafeUnpin for WitFunction
impl UnwindSafe for WitFunction
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.