Expand description
Contains different traits for sequences of elements, namely seq::VectorView and seq::VectorFn.
They all have some functional overlap with ExactSizeIterator, but differ in how they allow
access to the elements of the sequence.
Modules§
Structs§
- A
VectorFnthat produces its elements by cloning the elements of an underlyingVectorView. Produced by the functionsVectorView::clone_els()andVectorView::clone_ring_els(). - A wrapper around a
RingStorethat is callable with signature(&El<R>) -> El<R>, and will clone the given ring element when called. - Callable struct that wraps
Clone::clone(). - Iterator over the elements of a
VectorFn. Produced by the functionVectorFn::iter()andVectorFn::into_iter(). - Wrapper around
VectorViewthat interprets it as aVectorFn. The elements it provides are just the same references that would be returned throughVectorFn::at(). Produced by the functionVectorView::as_fn().
Traits§
- Trait for
VectorFns that support shrinking, i.e. transforming the vector into a subvector of itself. - Trait for
VectorViews that support shrinking, i.e. transforming the vector into a subvector of itself. - Operation that operates on a
VectorViewSparse. - A trait for
VectorViewMuts that support swapping of two elements. - A trait for objects that provides random-position access to a 1-dimensional sequence (or vector) of elements that returned by value.
- A trait for objects that provides random-position read access to a 1-dimensional sequence (or vector) of elements.
- A trait for
VectorViews that allow mutable access to one element at a time. - View on a sequence type that stores its data in a sparse format. This clearly requires that the underlying type
Thas some notion of a “zero” element.