Module obj_safe

Source
Expand description

Object safe variants of Iterable, Collection and CollectionMut traits.

Traitsยง

CollectionMutObj
In addition to boxed_iter, a CollectionMutObj provides the boxed_iter_mut method which returns a boxed iterator over mutable references of elements of the collection.
CollectionObj
A CollectionObj provides the boxed_iter method which returns a boxed iterator over shared references of elements of the collection.
IterableObj
An IterableObj is any type which can return a new boxed iterator that yields elements of the associated type Item every time boxed_iter method is called.