ElemParameter

Struct ElemParameter 

pub struct ElemParameter { /* private fields */ }

Implementations§

§

impl ElemParameter

The parameter element implementation.

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

Create a new parameter element.

§Arguments
  • name_param - Parameter name.
  • label_param - Parameter label.
  • desc_param - Parameter description.
§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 label(&self) -> &str

Get the parameter label.

§Return
  • See description.

pub fn description(&self) -> &str

Get the parameter description.

§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_label(&mut self, label_param: &str)

Set the parameter label.

§Arguments
  • label_param - See description.

pub fn set_description(&mut self, desc_param: &str)

Set the parameter description.

§Arguments
  • desc_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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.