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§
- permute
- Contains the utility functions
permute::permute()andpermute::permute_inv()for applying permutationsVectorViewMuts. - sparse
- Contains
sparse::SparseMapVector, a container for sparse vectors. - step_by
- Contains
step_by::StepByandstep_by::StepByFn, which wrap aVectorVieworVectorFn, respectively, and give a newVectorVieworVectorFnthat only yields everyn-th element. - subvector
- Contains
subvector::SubvectorViewandsubvector::SubvectorFn, which wrap aVectorVieworVectorFn, respectively, and give a newVectorVieworVectorFnthat only yields elements from a given range.
Structs§
- Clone
ElFn - A
VectorFnthat produces its elements by cloning the elements of an underlyingVectorView. Produced by the functionsVectorView::clone_els()andVectorView::clone_ring_els(). - Clone
Ring El - A wrapper around a
RingStorethat is callable with signature(&El<R>) -> El<R>, and will clone the given ring element when called. - Clone
Value - Callable struct that wraps
Clone::clone(). - Vector
FnIter - Iterator over the elements of a
VectorFn. Produced by the functionVectorFn::iter()andVectorFn::into_iter(). - Vector
FnMap - Vector
View Fn - 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(). - Vector
View Map - Vector
View MapMut
Traits§
- Self
Subvector Fn - Trait for
VectorFns that support shrinking, i.e. transforming the vector into a subvector of itself. - Self
Subvector View - Trait for
VectorViews that support shrinking, i.e. transforming the vector into a subvector of itself. - Sparse
Vector View Operation - Operation that operates on a
VectorViewSparse. - Swappable
Vector View Mut - A trait for
VectorViewMuts that support swapping of two elements. - Vector
Fn - A trait for objects that provides random-position access to a 1-dimensional sequence (or vector) of elements that returned by value.
- Vector
View - A trait for objects that provides random-position read access to a 1-dimensional sequence (or vector) of elements.
- Vector
View Mut - A trait for
VectorViews that allow mutable access to one element at a time. - Vector
View Sparse - 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.