Struct feanor_math::matrix::Column
source · pub struct Column<'a, V, T>where
V: AsPointerToSlice<T>,{ /* private fields */ }
Expand description
An immutable view on a column of a matrix.
Trait Implementations§
source§impl<'a, V, T> Clone for Column<'a, V, T>where
V: AsPointerToSlice<T>,
impl<'a, V, T> Clone for Column<'a, V, T>where
V: AsPointerToSlice<T>,
source§impl<'a, V, T> VectorView<T> for Column<'a, V, T>where
V: AsPointerToSlice<T>,
impl<'a, V, T> VectorView<T> for Column<'a, V, T>where
V: AsPointerToSlice<T>,
fn len(&self) -> usize
fn at(&self, i: usize) -> &T
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.source§fn map<F: for<'a> Fn(&'a T) -> &'a U, U>(
self,
func: F,
) -> VectorViewMap<Self, T, U, F>where
Self: Sized,
fn map<F: for<'a> Fn(&'a T) -> &'a U, U>(
self,
func: F,
) -> VectorViewMap<Self, T, U, F>where
Self: Sized,
Creates a new
VectorView
whose elements are the results of the given function
applied to the elements of this vector. Read morefn step_by(self, step_by: usize) -> StepBy<Self, T>where
Self: Sized,
impl<'a, V, T> Copy for Column<'a, V, T>where
V: AsPointerToSlice<T>,
Auto Trait Implementations§
impl<'a, V, T> Freeze for Column<'a, V, T>
impl<'a, V, T> RefUnwindSafe for Column<'a, V, T>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, V, T> Send for Column<'a, V, T>
impl<'a, V, T> Sync for Column<'a, V, T>
impl<'a, V, T> Unpin for Column<'a, V, T>
impl<'a, V, T> UnwindSafe for Column<'a, V, T>where
T: RefUnwindSafe,
V: RefUnwindSafe,
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> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
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