Struct parity_wasm::elements::FunctionType
source · [−]pub struct FunctionType { /* private fields */ }
Expand description
Function signature type.
Implementations
sourceimpl FunctionType
impl FunctionType
sourcepub fn new(params: Vec<ValueType>, results: Vec<ValueType>) -> Self
pub fn new(params: Vec<ValueType>, results: Vec<ValueType>) -> Self
New function type given the params and results as vectors
sourcepub fn params_mut(&mut self) -> &mut Vec<ValueType>
pub fn params_mut(&mut self) -> &mut Vec<ValueType>
Mutable parameters in the function signature.
sourcepub fn results_mut(&mut self) -> &mut Vec<ValueType>
pub fn results_mut(&mut self) -> &mut Vec<ValueType>
Mutable type in the function signature, if any.
Trait Implementations
sourceimpl Clone for FunctionType
impl Clone for FunctionType
sourcefn clone(&self) -> FunctionType
fn clone(&self) -> FunctionType
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 more
sourceimpl Debug for FunctionType
impl Debug for FunctionType
sourceimpl Default for FunctionType
impl Default for FunctionType
sourceimpl Deserialize for FunctionType
impl Deserialize for FunctionType
sourceimpl Hash for FunctionType
impl Hash for FunctionType
sourceimpl PartialEq<FunctionType> for FunctionType
impl PartialEq<FunctionType> for FunctionType
sourcefn eq(&self, other: &FunctionType) -> bool
fn eq(&self, other: &FunctionType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FunctionType) -> bool
fn ne(&self, other: &FunctionType) -> bool
This method tests for !=
.
sourceimpl Serialize for FunctionType
impl Serialize for FunctionType
impl Eq for FunctionType
impl StructuralEq for FunctionType
impl StructuralPartialEq for FunctionType
Auto Trait Implementations
impl RefUnwindSafe for FunctionType
impl Send for FunctionType
impl Sync for FunctionType
impl Unpin for FunctionType
impl UnwindSafe for FunctionType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more