pub trait ListTrait {
    fn clear(&mut self);
    fn count(&self) -> usize;
    fn index(&self) -> usize;
    fn get_element(&self, index_param: usize) -> bool;
    fn set_index(&self, index_param: usize) -> bool;
}
Expand description

Common trait for all lists.

Required Methods

Clear elements from the list.

Get the count of the list.

Return
  • See description.

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

Return
  • See description.

Select an element based upon an index value.

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

Set the element index.

Arguments
  • index_param - The index element to set (starting from 0).

Implementors

List of amortization elements list implementation.

List of columns list implementation.

List of descriptors list implementation.

List of events list implementation.

List of parameters list implementation.

List of statistic helper list implementation.

List of summary items list implementation.

List of currently active cashflows list implementation.

List of exchange rates list implementation.

List of currently active cashflows list implementation.

List of template events list implementation.

List of template groups list implementation.