pub struct All<I: Index>(/* private fields */);Expand description
The return type of Index::all().
Trait Implementations§
Source§impl<I: Index> View for All<I>
impl<I: Index> View for All<I>
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<I: Copy + Index> Copy for All<I>
Auto Trait Implementations§
impl<I> Freeze for All<I>
impl<I> RefUnwindSafe for All<I>
impl<I> Send for All<I>
impl<I> Sync for All<I>
impl<I> Unpin for All<I>
impl<I> UnwindSafe for All<I>
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