pub struct ListTemplateEvent { /* private fields */ }

Implementations

Implementation for the list of template event definitions.

Create and return a new list template event elements.

Return
  • See description.

Add a new template event into the template event list. If the group and 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 template event.
  • initial - Initial template event.
  • list_event - The list of events (or None).
Return
  • True if successful, otherwise false.

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

Arguments
  • updating_json - Updating from Json.
Return
  • See description.

Get the name of the template event.

Return
  • See description.

Get the initial template event.

Return
  • See description.

Get the list of events.

Return
  • See description.

Get the mut list of events.

Return
  • See description.

Select an template event based upon a group and name.

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

Remove the selected template event from the template event list.

Return
  • True if successful, otherwise false.

Set the name of the template event. Duplicate names are not allowed.

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

Set the initial template event.

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

Determines when the template event list is sorted.

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

Trait Implementations

List of template events default implementation.

Create a new symbol element.

Return
  • See description.

List of template events list implementation.

Clear all template events from the template event list.

Get the count of the template event list.

Return
  • See description.

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

Return
  • See description.

Select an template event based upon an index value.

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