pub struct ListDescriptor { /* private fields */ }

Implementations

List of descriptors implementation.

Create a new descriptor list.

Arguments
  • elem_level_param - Element level
Return
  • See description.

Add a new descriptor into the descriptor 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
  • group_param - Descriptor group.
  • name_param - Descriptor name.
  • desc_type_param - Descriptor type.
  • code_param - Descriptor code.
  • value_param - Value parameter.
  • value_expr_param - Value expression.
  • propagate_param - Propogate descriptor.
  • updating_json_param - Updating from json.
Return
  • True if successful, otherwise false.

Performs a deep copy of this descriptor list and returns and new descriptor list.

Arguments
  • copy_propagate - Copy only descriptors marked as “propagate” (otherwise copy all descriptors).
  • elem_level_param - Element level
  • updating_json_param - Updating from json.
Return
  • See description.

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

Arguments
  • list_descriptor - The descriptor list to copy into.
  • copy_propagate - Copy only descriptors marked as “propagate” (otherwise copy all descriptors).
  • updating_json_param - Updating from json

Tests if this descriptor list and another are equal.

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

Get the group name of the descriptor.

Return
  • See description.

Get the name of the descriptor.

Return
  • See description.

Get the type of descriptor.

Return
  • See description.

Get the code for the type of descriptor.

Return
  • See description.

Get the constant value or the result of an expression.

Return
  • See description.

Get the optional value expression.

Return
  • See description.

Get the propagate to the next level if applicable.

Return
  • See description.

Get the index of the event within the event list.

Return
  • See description.

Select a descriptor based upon a group, name, type, and code.

Arguments
  • group_param - Group to find.
  • name_param - Name to find.
  • type_param - Type to find.
  • code_param - Code to find.
  • select_param - Select the found element, otherwise just return result.
Return
  • True if successful, otherwise false.

Remove the selected descriptor from the descriptor list.

Return
  • True if successful, otherwise false.

Set the group name of the descriptor. Duplicate group/name are not allowed.

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

Set the name of the descriptor. Duplicate group/name are not allowed.

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

Set the type of descriptor.

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

Set the code for the type of descriptor.

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

Set the constant value.

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

Set the result of an expression.

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

Set the optional value expression.

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

Set the propagate to the next level if applicable.

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

Set the index of the event within the event list.

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

Determines when the descriptor list is sorted.

Arguments
  • sort_on_add_param - If true sort when a descriptor 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.
Return
  • True if successful, otherwise false.

Trait Implementations

List of descriptors default implementation.

Create a new symbol element.

Return
  • See description.

List of descriptors list implementation.

Clear all descriptors from the descriptor list.

Get the count of the descriptor list.

Return
  • See description.

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

Return
  • See description.

Select a descriptor based upon an index value.

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