Module relm4::source · [−]
Containers similar to
std::collections that implement the
Which factory type to use
FactoryVec if you only need to push and pop at the back.
If you need more flexibility for example for pushing or removing items at
arbitrary indices use
FactoryVec works with all container widgets that implement
FactoryView such as
FactoryVecDeque additionally needs container widgets to implement the
FactoryListView trait that’s implements support
for adding and removing widgets at arbitrary positions.
gtk::Grid for example only works with
FactoryVec but not with
FactoryVecDeque because widgets can’t be inserted at arbitrary positions.
Another difference is that
FactoryVecDeque will insert widgets
at the beginning if the container used for the factory contains other widgets
that were inserted independently from the factory.
FactoryVec will insert widgets at the end in the same scenario.
A dynamic index that updates automatically when items are shifted inside a
A weak version of