Struct golem_wasm_ast::analysis::AnalysedFunction
source · pub struct AnalysedFunction {
pub name: String,
pub params: Vec<AnalysedFunctionParameter>,
pub results: Vec<AnalysedFunctionResult>,
}
Fields§
§name: String
§params: Vec<AnalysedFunctionParameter>
§results: Vec<AnalysedFunctionResult>
Implementations§
source§impl AnalysedFunction
impl AnalysedFunction
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 AnalysedFunction
impl Clone for AnalysedFunction
source§fn clone(&self) -> AnalysedFunction
fn clone(&self) -> AnalysedFunction
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 AnalysedFunction
impl Debug for AnalysedFunction
source§impl PartialEq for AnalysedFunction
impl PartialEq for AnalysedFunction
source§fn eq(&self, other: &AnalysedFunction) -> bool
fn eq(&self, other: &AnalysedFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl WasmFunc for AnalysedFunction
impl WasmFunc for AnalysedFunction
§type Type = AnalysedType
type Type = AnalysedType
A type representing types of these params and results.
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 AnalysedFunction
impl StructuralPartialEq for AnalysedFunction
Auto Trait Implementations§
impl Freeze for AnalysedFunction
impl RefUnwindSafe for AnalysedFunction
impl Send for AnalysedFunction
impl Sync for AnalysedFunction
impl Unpin for AnalysedFunction
impl UnwindSafe for AnalysedFunction
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.