std::collections::interfacelist {Type}

Public

Types

NameDescription
InterfaceListThe InterfaceList contains a heterogenous set of types implementing an interface. anything placed in the...

Functions

NameDescription
interfacelist::free_elementFree a retained element removed using *_retained.
interfacelist::pop_first_retainedPop the first value. It must later be released using `list.free_element()`.
interfacelist::copy_popCopy the last value, pop it and return the copy of it.
interfacelist::lenReturn the length of the list.
interfacelist::pop_retainedPop the last value. It must later be released using `list.free_element()`.
interfacelist::add_allAdd all the elements in another InterfaceList.
interfacelist::remove_atRemove the element at the particular index.
interfacelist::array_viewReturn a view of the data as a slice.
interfacelist::lastReturn the last element
interfacelist::retain_ifRetain the elements matching the predicate.
interfacelist::clearRemove all elements in the list.
interfacelist::retain_using_testRetain Type elements matching the predicate.
interfacelist::reserveReserve memory so that at least the `min_capacity` exists.
interfacelist::tcopy_popCopy the last value, pop it and return the copy of it.
interfacelist::remove_lastRemove the last element in the list. The list may not be empty.
interfacelist::reverseReverse the order of the elements in the list.
interfacelist::remove_ifRemove Type elements matching the predicate.
interfacelist::tcopy_pop_firstCopy the first value, pop it and return the temp copy of it.
interfacelist::swapSwap two elements in a list.
interfacelist::is_initialized
interfacelist::pushPush an element on the list by cloning it.
interfacelist::tinitInitialize the list using the temp allocator.
interfacelist::freeCompletely free and clear a list.
interfacelist::remove_using_testRemove Type elements matching the predicate.
interfacelist::to_formatPrint the list to a formatter.
interfacelist::copy_pop_firstCopy the first value, pop it and return the copy of it.
interfacelist::initInitialize the list. If not initialized then it will use the temp allocator...
interfacelist::firstReturn the first element
interfacelist::push_frontPush an element to the front of the list.
interfacelist::insert_atInsert an element at a particular index.
interfacelist::remove_firstRemove the first element in the list, the list may not be empty.
interfacelist::setSet the element at Type index.
interfacelist::getReturn an element in the list.
interfacelist::is_emptyReturn whether the list is empty.

Private

Functions

NameDescription
interfacelist::ensure_capacity