pub struct ListParameter { /* private fields */ }

Implementations

List of parameters implementation.

Create a new parameter list.

Arguments
  • elem_level_param - Element level
Return
  • See description.

Add a new parameter into the parameter list. If the name results in a duplicate entry, an incrementing number starting from 2 is appended to the name until a non-duplicate entry is found.

Arguments
  • name_param - Name of the parameter.
  • label_param - Label of the parameter.
  • desc_param - Description of the parameter.
  • updating_json_param - Updating from json.
Return
  • True if successful, otherwise false.

Performs a deep copy of this parameter list and returns to new parameter list.

Arguments
  • elem_level_param - Element level
  • updating_json_param - Updating from json.
Return
  • See description.

Performs a deep copy of this parameter list into the parameter list parameter.

Arguments
  • list_parameter - The parameter list to copy into.
  • updating_json_param - Updating from json.

Tests if this parameter list and another are equal.

Arguments
  • list_parameter - List to compare.
Return
  • True if equals, otherwise false.

Get the name of the parameter.

Return
  • See description.

Get the label of the parameter.

Return
  • See description.

Get the description of the parameter.

Return
  • See description.

Get the type of the parameter.

Return
  • See description.

Get the integer value of the parameter.

Return
  • See description.

Get the integer value of the parameter.

Return
  • See description.

Get the decimal value of the parameter.

Return
  • See description.

Get the string value of the parameter.

Return
  • See description.

Select a parameter based upon a name.

Arguments
  • name_param - The name of the parameter to select.
  • select_param - If true select element, otherwise restore current element.
Return
  • True if successful, otherwise false.

Move the selected parameter up or down in the parameter list.

Arguments
  • is_up - Move up, otherwise down.
Return
  • True if successful, otherwise false.

Remove the selected parameter from the parameter list.

Return
  • True if successful, otherwise false.

Set the name of the parameter. Duplicate names are not allowed.

Arguments
  • name_param - See description.
Return
  • True if successful, otherwise false.

Set the label of the parameter.

Arguments
  • name_param - See description.
Return
  • True if successful, otherwise false.

Set the description of the parameter.

Arguments
  • name_param - See description.
Return
  • True if successful, otherwise false.

Set the type of parameter.

Arguments
  • value_param - See description.
Return
  • True if successful, otherwise false.

Set the integer value.

Arguments
  • value_param - See description.
Return
  • True if successful, otherwise false.

Set the integer value.

Arguments
  • value_param - See description.
Return
  • True if successful, otherwise false.

Set the decimal value.

Arguments
  • value_param - See description.
Return
  • True if successful, otherwise false.

Set the string value.

Arguments
  • value_param - See description.
Return
  • True if successful, otherwise false.

Trait Implementations

List of parameters default implementation.

Create a new symbol element.

Return
  • See description.

List of parameters list implementation.

Clear all parameters from the parameter list.

Get the count of the parameter list.

Return
  • See description.

Get the index of the selected parameter (starting from 0).

Return
  • See description.

Select a parameter based upon an index value.

Arguments
  • index_param - Index value of the parameter to select (starting from 0).
Return
  • True if successful, otherwise false.

Set the list index.

Arguments
  • index_param - See description.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.