Struct feanor_math::seq::sparse::SparseHashMapVector
source · pub struct SparseHashMapVector<R: RingStore> { /* private fields */ }Expand description
§Availability
This API is marked as unstable and is only available when the unstable-enable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Implementations§
source§impl<R: RingStore> SparseHashMapVector<R>
impl<R: RingStore> SparseHashMapVector<R>
sourcepub fn new(len: usize, ring: R) -> Self
pub fn new(len: usize, ring: R) -> Self
§Availability
This API is marked as unstable and is only available when the unstable-enable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Trait Implementations§
source§impl<R: RingStore> VectorView<<<R as RingStore>::Type as RingBase>::Element> for SparseHashMapVector<R>
impl<R: RingStore> VectorView<<<R as RingStore>::Type as RingBase>::Element> for SparseHashMapVector<R>
fn at(&self, i: usize) -> &El<R>
fn len(&self) -> usize
source§fn as_iter<'a>(&'a self) -> VectorFnIter<VectorViewFn<'a, Self, T>, &'a T> ⓘ
fn as_iter<'a>(&'a self) -> VectorFnIter<VectorViewFn<'a, Self, T>, &'a T> ⓘ
Returns an iterator over all elements in this vector. Read more
source§fn as_fn<'a>(&'a self) -> VectorViewFn<'a, Self, T>
fn as_fn<'a>(&'a self) -> VectorViewFn<'a, Self, T>
Converts this vector into a
VectorFn that yields references &T.source§fn into_ring_el_fn<R: RingStore>(
self,
ring: R,
) -> CloneElFn<Self, T, CloneRingEl<R>>
fn into_ring_el_fn<R: RingStore>( self, ring: R, ) -> CloneElFn<Self, T, CloneRingEl<R>>
Converts this vector into a
VectorFn that clones elements on access.source§fn as_ring_el_fn<'a, R: RingStore>(
&'a self,
ring: R,
) -> CloneElFn<&'a Self, T, CloneRingEl<R>>
fn as_ring_el_fn<'a, R: RingStore>( &'a self, ring: R, ) -> CloneElFn<&'a Self, T, CloneRingEl<R>>
Converts this vector into a
VectorFn that clones elements on access.source§fn into_fn<F>(self, clone_entry: F) -> CloneElFn<Self, T, F>
fn into_fn<F>(self, clone_entry: F) -> CloneElFn<Self, T, F>
Converts this vector into a
VectorFn that clones elements on access.fn map<F: for<'a> Fn(&'a T) -> &'a U, U>(
self,
func: F,
) -> VectorViewMap<Self, T, U, F>where
Self: Sized,
fn step_by(self, step_by: usize) -> StepBy<Self, T>where
Self: Sized,
source§impl<R: RingStore> VectorViewMut<<<R as RingStore>::Type as RingBase>::Element> for SparseHashMapVector<R>
impl<R: RingStore> VectorViewMut<<<R as RingStore>::Type as RingBase>::Element> for SparseHashMapVector<R>
source§impl<R: RingStore> VectorViewSparse<<<R as RingStore>::Type as RingBase>::Element> for SparseHashMapVector<R>
impl<R: RingStore> VectorViewSparse<<<R as RingStore>::Type as RingBase>::Element> for SparseHashMapVector<R>
type Iter<'a> = SparseHashMapVectorIter<'a, R> where Self: 'a
fn nontrivial_entries<'a>(&'a self) -> Self::Iter<'a>
Auto Trait Implementations§
impl<R> Freeze for SparseHashMapVector<R>
impl<R> RefUnwindSafe for SparseHashMapVector<R>
impl<R> Send for SparseHashMapVector<R>
impl<R> Sync for SparseHashMapVector<R>
impl<R> Unpin for SparseHashMapVector<R>
impl<R> UnwindSafe for SparseHashMapVector<R>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more