pub struct Row<V, I, J>(/* private fields */);Expand description
The return type of View::row().
Trait Implementations§
Source§impl<V: View, I: Index, J: Index> Index<<Row<V, I, J> as View>::I> for Row<V, I, J>where
Self: ViewRef,
impl<V: View, I: Index, J: Index> Index<<Row<V, I, J> as View>::I> for Row<V, I, J>where
Self: ViewRef,
Source§impl<V: View, I: Index, J: Index> IndexMut<<Row<V, I, J> as View>::I> for Row<V, I, J>where
Self: ViewMut,
impl<V: View, I: Index, J: Index> IndexMut<<Row<V, I, J> as View>::I> for Row<V, I, J>where
Self: ViewMut,
Source§impl<V: View, I: Index, J: Index> View for Row<V, I, J>
impl<V: View, I: Index, J: Index> View for Row<V, I, J>
Source§fn diagonal(self, zero: Self::T) -> Diagonal<Self>
fn diagonal(self, zero: Self::T) -> Diagonal<Self>
Returns a
View that maps (i, i) to t when Self maps i to t.
It maps (i, j) to zero if i != j. Read moreSource§fn concat<V: View<T = Self::T>, I: Index, J: Index>(
self,
other: V,
) -> Concat<Self, V, I, J>where
Self::I: Isomorphic<(I, usize, J)>,
<Self::I as Index>::Size: Isomorphic<(I::Size, usize, J::Size)>,
V::I: Isomorphic<(I, usize, J)>,
<V::I as Index>::Size: Isomorphic<(I::Size, usize, J::Size)>,
fn concat<V: View<T = Self::T>, I: Index, J: Index>(
self,
other: V,
) -> Concat<Self, V, I, J>where
Self::I: Isomorphic<(I, usize, J)>,
<Self::I as Index>::Size: Isomorphic<(I::Size, usize, J::Size)>,
V::I: Isomorphic<(I, usize, J)>,
<V::I as Index>::Size: Isomorphic<(I::Size, usize, J::Size)>,
Source§fn from_usize<I: Index, X: Index, J: Index>(
self,
from_length: impl FnOnce(usize) -> X::Size,
) -> FromUsize<Self, I, X, J>where
Self::I: Isomorphic<(I, usize, J)>,
<Self::I as Index>::Size: Isomorphic<<(I, usize, J) as Index>::Size>,
fn from_usize<I: Index, X: Index, J: Index>(
self,
from_length: impl FnOnce(usize) -> X::Size,
) -> FromUsize<Self, I, X, J>where
Self::I: Isomorphic<(I, usize, J)>,
<Self::I as Index>::Size: Isomorphic<<(I, usize, J) as Index>::Size>,
Source§fn to_usize<I: Index, X: Index, J: Index>(self) -> ToUsize<Self, I, X, J>where
Self::I: Isomorphic<(I, X, J)>,
<Self::I as Index>::Size: Isomorphic<<(I, X, J) as Index>::Size>,
fn to_usize<I: Index, X: Index, J: Index>(self) -> ToUsize<Self, I, X, J>where
Self::I: Isomorphic<(I, X, J)>,
<Self::I as Index>::Size: Isomorphic<<(I, X, J) as Index>::Size>,
Source§fn insert_one<I: Index, J: Index, K: Index>(
self,
size: J::Size,
) -> InsertOne<Self, I, J, K>
fn insert_one<I: Index, J: Index, K: Index>( self, size: J::Size, ) -> InsertOne<Self, I, J, K>
Source§fn remove_one<I: Index, J: Index, K: Index>(self) -> RemoveOne<Self, I, J, K>where
Self::I: Isomorphic<(I, J, K)>,
<Self::I as Index>::Size: Isomorphic<(I::Size, J::Size, K::Size)>,
fn remove_one<I: Index, J: Index, K: Index>(self) -> RemoveOne<Self, I, J, K>where
Self::I: Isomorphic<(I, J, K)>,
<Self::I as Index>::Size: Isomorphic<(I::Size, J::Size, K::Size)>,
Source§fn binary<V: View, B>(self, other: V) -> Zip<Self, V, B>
fn binary<V: View, B>(self, other: V) -> Zip<Self, V, B>
Creates a
View that pairs of an element of self and an element of
other, then applies binary operator B. Read moreSource§fn iso<J>(self) -> Iso<Self, J>
fn iso<J>(self) -> Iso<Self, J>
Change the index type of this
View to an Isomorphic type.Source§fn rows<I: Index, J: Index>(&self) -> Rows<&Self, I, J>
fn rows<I: Index, J: Index>(&self) -> Rows<&Self, I, J>
Returns a
View whose at(i) returns self.row(i).impl<V: Copy, I: Copy, J: Copy> Copy for Row<V, I, J>
Auto Trait Implementations§
impl<V, I, J> Freeze for Row<V, I, J>
impl<V, I, J> RefUnwindSafe for Row<V, I, J>
impl<V, I, J> Send for Row<V, I, J>
impl<V, I, J> Sync for Row<V, I, J>
impl<V, I, J> Unpin for Row<V, I, J>
impl<V, I, J> UnwindSafe for Row<V, I, J>
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