pub struct ListTemplateGroup { /* private fields */ }

Implementations

Implementation for the list of template groups.

Create and return a new list template group.

Arguments
  • calc_manager_param - Calculation manager.
Return
  • See description.

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

Arguments
  • group_param - Group name of the template group.
Return
  • ERROR_NONE if successful, otherwise error code.

Append to the template group list.

Arguments
  • list_template_group - See description.

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

Arguments
  • group_param - Group name of the template group.
  • elem_preferences_orig_opt - Original preferences element to copy (or None).
  • copy_propagate - Copy only descriptors marked as “propagate” (otherwise copy all descriptors).
Return
  • ERROR_NONE if successful, otherwise error code.

Performs a deep copy of the template group list and returns a new template group list.

Arguments
  • calc_manager_param - Calculation manager.
Return
  • See description.

Performs a deep copy of the template group element and returns a new template group element.

Return
  • ERROR_NONE if successful, otherwise error code.

Evaluate all of the descriptors in the template group. For each descriptor that specifies an expression, execute the expression using the list of parameters.

Get the group name of the template group.

Return
  • See description.

Get the preferences element.

Return
  • See description.

Get the mutable preferences element.

Return
  • See description.

Get the list of template events.

Return
  • See description.

Get the mutable list of template events.

Return
  • See description.

Retrieve when the template group list is sorted.

Return
  • See description.

Select a template group based upon a group name.

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

Remove the selected template group from the template group list.

Return
  • True if successful, otherwise false.

Set the group name of the template group.

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

Determines when the template group list is sorted.

Arguments
  • sort_on_add_param - If true sort when an template group is added, otherwise do not sort (for bulk adds).
Return
  • True if successful, otherwise false.

Set sort updated.

Arguments
  • sort_updated_param - If true sort updated otherwise false.

Sort the template group list.

Trait Implementations

List of template groups list implementation.

Clear all template groups from the template group list.

Get the count of the template group list.

Return
  • See description.

Get the index of the selected template group (starting from 0).

Return
  • See description.

Select a template group based upon an index value.

Arguments
  • index_param - The index value of the template group 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.