Struct amfnwasm::WasmParameter[][src]

pub struct WasmParameter { /* fields omitted */ }

Wasm parameter element.

Implementations

impl WasmParameter[src]

Wasm parameter element implementation.

pub fn new(
    name_param: &str,
    sym_type_param: &str,
    int_value_param: i32,
    dec_value_param: &str,
    str_value_param: &str
) -> WasmParameter
[src]

Create and return a parameter.

Arguments

  • name_param - The parameter name.
  • sym_type_param - The symbol type.
  • int_value_param - The integer value.
  • dec_value_param - The decimal value.
  • str_value_param - The string value.

Return

  • See description.

pub fn name(&self) -> String[src]

Getter for name property

pub fn set_name(&mut self, name: String)[src]

Setter for name property

pub fn sym_type(&self) -> String[src]

Getter for sym_type property

pub fn set_sym_type(&mut self, sym_type: String)[src]

Setter for sym_type property

pub fn int_value(&self) -> i32[src]

Getter for int_value property

pub fn set_int_value(&mut self, int_value: i32)[src]

Setter for int_value property

pub fn dec_value(&self) -> String[src]

Getter for dec_value property

pub fn set_dec_value(&mut self, dec_value: String)[src]

Setter for dec_value property

pub fn str_value(&self) -> String[src]

Getter for str_value property

pub fn set_str_value(&mut self, str_value: String)[src]

Setter for str_value property

Trait Implementations

impl FromWasmAbi for WasmParameter[src]

type Abi = u32

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for WasmParameter[src]

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl OptionFromWasmAbi for WasmParameter[src]

impl OptionIntoWasmAbi for WasmParameter[src]

impl RefFromWasmAbi for WasmParameter[src]

type Abi = u32

The wasm ABI type references to Self are recovered from.

type Anchor = Ref<'static, WasmParameter>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don’t persist beyond one function call, and so that they remain anonymous. Read more

impl RefMutFromWasmAbi for WasmParameter[src]

type Abi = u32

Same as RefFromWasmAbi::Abi

type Anchor = RefMut<'static, WasmParameter>

Same as RefFromWasmAbi::Anchor

impl WasmDescribe for WasmParameter[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.