std::collections::interfacelist {Type}
Public
Types
| Name | Description |
|---|---|
| InterfaceList | The InterfaceList contains a heterogenous set of types implementing an interface. anything placed in the... |
Functions
| Name | Description |
|---|---|
| interfacelist::free_element | Free a retained element removed using *_retained. |
| interfacelist::pop_first_retained | Pop the first value. It must later be released using `list.free_element()`. |
| interfacelist::copy_pop | Copy the last value, pop it and return the copy of it. |
| interfacelist::len | Return the length of the list. |
| interfacelist::pop_retained | Pop the last value. It must later be released using `list.free_element()`. |
| interfacelist::add_all | Add all the elements in another InterfaceList. |
| interfacelist::remove_at | Remove the element at the particular index. |
| interfacelist::array_view | Return a view of the data as a slice. |
| interfacelist::last | Return the last element |
| interfacelist::retain_if | Retain the elements matching the predicate. |
| interfacelist::clear | Remove all elements in the list. |
| interfacelist::retain_using_test | Retain Type elements matching the predicate. |
| interfacelist::reserve | Reserve memory so that at least the `min_capacity` exists. |
| interfacelist::tcopy_pop | Copy the last value, pop it and return the copy of it. |
| interfacelist::remove_last | Remove the last element in the list. The list may not be empty. |
| interfacelist::reverse | Reverse the order of the elements in the list. |
| interfacelist::remove_if | Remove Type elements matching the predicate. |
| interfacelist::tcopy_pop_first | Copy the first value, pop it and return the temp copy of it. |
| interfacelist::swap | Swap two elements in a list. |
| interfacelist::is_initialized | |
| interfacelist::push | Push an element on the list by cloning it. |
| interfacelist::tinit | Initialize the list using the temp allocator. |
| interfacelist::free | Completely free and clear a list. |
| interfacelist::remove_using_test | Remove Type elements matching the predicate. |
| interfacelist::to_format | Print the list to a formatter. |
| interfacelist::copy_pop_first | Copy the first value, pop it and return the copy of it. |
| interfacelist::init | Initialize the list. If not initialized then it will use the temp allocator... |
| interfacelist::first | Return the first element |
| interfacelist::push_front | Push an element to the front of the list. |
| interfacelist::insert_at | Insert an element at a particular index. |
| interfacelist::remove_first | Remove the first element in the list, the list may not be empty. |
| interfacelist::set | Set the element at Type index. |
| interfacelist::get | Return an element in the list. |
| interfacelist::is_empty | Return whether the list is empty. |
Private
Functions
| Name | Description |
|---|---|
| interfacelist::ensure_capacity |