Struct amfnengine::core::elem_parameter::ElemParameter[]

pub struct ElemParameter { /* fields omitted */ }

Implementations

impl ElemParameter

The parameter element implementation.

pub fn new(name_param: &str) -> ElemParameter

Create a new parameter element.

Arguments

  • name_param - Parameter name.

Return

  • See description.

pub fn equal(&self, parameter: &ElemParameter) -> bool

Compare this parameter to the parameter parameter.

Arguments

  • parameter - Parameter to compare.

Return

  • True if equal, otherwise false.

pub fn name(&self) -> &str

Get the parameter name.

Return

  • See description.

pub fn param_type(&self) -> TokenType

Get the parameter type.

Return

  • See description.

pub fn param_integeri(&self) -> i32

Get the parameter integer.

Return

  • See description.

pub fn param_integer(&self) -> usize

Get the parameter integer.

Return

  • See description.

pub fn param_decimal(&self) -> Decimal

Get the parameter decimal.

Return

  • See description.

pub fn param_string(&self) -> &str

Get the parameter string.

Return

  • See description.

pub fn set_name(&mut self, name_param: &str)

Set the parameter name.

Arguments

  • name_param - See description.

pub fn set_type(&mut self, type_param: TokenType)

Set the parameter type.

Arguments

  • type_param - See description.

pub fn set_integeri(&mut self, integer_param: i32)

Set the parameter integer.

Arguments

  • integer_param - See description.

pub fn set_integer(&mut self, integer_param: usize)

Set the parameter integer.

Arguments

  • integer_param - See description.

pub fn set_decimal(&mut self, float_param: Decimal)

Set the parameter decimal.

Arguments

  • float_param - See description.

pub fn set_string(&mut self, string_param: &str)

Set the parameter string.

Arguments

  • string_param - See description.

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, 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.