Struct jaggedarray::jagged_array::JaggedArrayOwnedView
source · pub struct JaggedArrayOwnedView<TVal, TNum, const N: usize>where
TNum: AsPrimitive<usize> + Num,
U<N>: Sub<B1>,
<U<N> as Sub<B1>>::Output: ArrayLength,
Const<N>: ToUInt,{ /* private fields */ }Trait Implementations§
source§impl<TVal: Clone, TNum, const N: usize> Clone for JaggedArrayOwnedView<TVal, TNum, N>
impl<TVal: Clone, TNum, const N: usize> Clone for JaggedArrayOwnedView<TVal, TNum, N>
source§fn clone(&self) -> JaggedArrayOwnedView<TVal, TNum, N>
fn clone(&self) -> JaggedArrayOwnedView<TVal, TNum, N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<TVal, TNum, const N: usize> IndexMut<[usize; N]> for JaggedArrayOwnedView<TVal, TNum, N>where
TNum: Num + AsPrimitive<usize>,
U<N>: Sub<B1> + ArrayLength,
<U<N> as Sub<B1>>::Output: ArrayLength,
Const<N>: ToUInt,
impl<TVal, TNum, const N: usize> IndexMut<[usize; N]> for JaggedArrayOwnedView<TVal, TNum, N>where
TNum: Num + AsPrimitive<usize>,
U<N>: Sub<B1> + ArrayLength,
<U<N> as Sub<B1>>::Output: ArrayLength,
Const<N>: ToUInt,
source§impl<TVal, TNum> JaggedArray1DMutViewTrait<TVal, TNum> for JaggedArrayOwnedView<TVal, TNum, 1>
impl<TVal, TNum> JaggedArray1DMutViewTrait<TVal, TNum> for JaggedArrayOwnedView<TVal, TNum, 1>
fn as_slice_mut(&mut self) -> &mut [TVal]
source§impl<TVal, TNum> JaggedArray1DViewTrait<TVal, TNum> for JaggedArrayOwnedView<TVal, TNum, 1>
impl<TVal, TNum> JaggedArray1DViewTrait<TVal, TNum> for JaggedArrayOwnedView<TVal, TNum, 1>
source§impl<TVal, TNum, const N: usize> JaggedArrayMutViewTrait<TVal, TNum, N> for JaggedArrayOwnedView<TVal, TNum, N>
impl<TVal, TNum, const N: usize> JaggedArrayMutViewTrait<TVal, TNum, N> for JaggedArrayOwnedView<TVal, TNum, N>
source§fn view_mut<const M: usize, const R: usize>(
&mut self,
index: [usize; M],
) -> JaggedArrayMutView<'_, TVal, TNum, R>where
U<N>: Sub<U2> + Sub<B1>,
<U<N> as Sub<U2>>::Output: ArrayLength,
<U<N> as Sub<B1>>::Output: Sub<B1>,
<<U<N> as Sub<B1>>::Output as Sub<B1>>::Output: ArrayLength,
U<N>: Sub<U<M>>,
<U<N> as Sub<U<M>>>::Output: IsEqual<U<R>>,
U<R>: Sub<B1>,
<U<R> as Sub<B1>>::Output: ArrayLength,
<<U<N> as Sub<U<M>>>::Output as IsEqual<U<R>>>::Output: NonZero,
Const<N>: ToUInt,
Const<M>: ToUInt,
Const<R>: ToUInt,
fn view_mut<const M: usize, const R: usize>(
&mut self,
index: [usize; M],
) -> JaggedArrayMutView<'_, TVal, TNum, R>where
U<N>: Sub<U2> + Sub<B1>,
<U<N> as Sub<U2>>::Output: ArrayLength,
<U<N> as Sub<B1>>::Output: Sub<B1>,
<<U<N> as Sub<B1>>::Output as Sub<B1>>::Output: ArrayLength,
U<N>: Sub<U<M>>,
<U<N> as Sub<U<M>>>::Output: IsEqual<U<R>>,
U<R>: Sub<B1>,
<U<R> as Sub<B1>>::Output: ArrayLength,
<<U<N> as Sub<U<M>>>::Output as IsEqual<U<R>>>::Output: NonZero,
Const<N>: ToUInt,
Const<M>: ToUInt,
Const<R>: ToUInt,
Rust const generics does not support arithmetic, so we have to specify the view’s dimension(R) as well
source§impl<TVal, TNum, const N: usize> JaggedArrayViewTrait<TVal, TNum, N> for JaggedArrayOwnedView<TVal, TNum, N>
impl<TVal, TNum, const N: usize> JaggedArrayViewTrait<TVal, TNum, N> for JaggedArrayOwnedView<TVal, TNum, N>
source§fn view<const M: usize, const R: usize>(
&self,
index: [usize; M],
) -> JaggedArrayView<'_, TVal, TNum, R>where
U<N>: Sub<U2> + Sub<B1>,
<U<N> as Sub<U2>>::Output: ArrayLength,
<U<N> as Sub<B1>>::Output: Sub<B1>,
<<U<N> as Sub<B1>>::Output as Sub<B1>>::Output: ArrayLength,
U<N>: Sub<U<M>>,
<U<N> as Sub<U<M>>>::Output: IsEqual<U<R>>,
U<R>: Sub<B1>,
<U<R> as Sub<B1>>::Output: ArrayLength,
<<U<N> as Sub<U<M>>>::Output as IsEqual<U<R>>>::Output: NonZero,
Const<N>: ToUInt,
Const<M>: ToUInt,
Const<R>: ToUInt,
fn view<const M: usize, const R: usize>(
&self,
index: [usize; M],
) -> JaggedArrayView<'_, TVal, TNum, R>where
U<N>: Sub<U2> + Sub<B1>,
<U<N> as Sub<U2>>::Output: ArrayLength,
<U<N> as Sub<B1>>::Output: Sub<B1>,
<<U<N> as Sub<B1>>::Output as Sub<B1>>::Output: ArrayLength,
U<N>: Sub<U<M>>,
<U<N> as Sub<U<M>>>::Output: IsEqual<U<R>>,
U<R>: Sub<B1>,
<U<R> as Sub<B1>>::Output: ArrayLength,
<<U<N> as Sub<U<M>>>::Output as IsEqual<U<R>>>::Output: NonZero,
Const<N>: ToUInt,
Const<M>: ToUInt,
Const<R>: ToUInt,
Rust const generics does not support arithmetic, so we have to specify the view’s dimension(R) as well
source§unsafe fn view_unchecked<const M: usize, const R: usize>(
&self,
index: [usize; M],
) -> JaggedArrayView<'_, TVal, TNum, R>where
U<N>: Sub<U2> + Sub<B1>,
<U<N> as Sub<U2>>::Output: ArrayLength,
<U<N> as Sub<B1>>::Output: Sub<B1>,
<<U<N> as Sub<B1>>::Output as Sub<B1>>::Output: ArrayLength,
U<N>: Sub<U<M>>,
<U<N> as Sub<U<M>>>::Output: IsEqual<U<R>>,
U<R>: Sub<B1>,
<U<R> as Sub<B1>>::Output: ArrayLength,
<<U<N> as Sub<U<M>>>::Output as IsEqual<U<R>>>::Output: NonZero,
Const<N>: ToUInt,
Const<M>: ToUInt,
Const<R>: ToUInt,
unsafe fn view_unchecked<const M: usize, const R: usize>(
&self,
index: [usize; M],
) -> JaggedArrayView<'_, TVal, TNum, R>where
U<N>: Sub<U2> + Sub<B1>,
<U<N> as Sub<U2>>::Output: ArrayLength,
<U<N> as Sub<B1>>::Output: Sub<B1>,
<<U<N> as Sub<B1>>::Output as Sub<B1>>::Output: ArrayLength,
U<N>: Sub<U<M>>,
<U<N> as Sub<U<M>>>::Output: IsEqual<U<R>>,
U<R>: Sub<B1>,
<U<R> as Sub<B1>>::Output: ArrayLength,
<<U<N> as Sub<U<M>>>::Output as IsEqual<U<R>>>::Output: NonZero,
Const<N>: ToUInt,
Const<M>: ToUInt,
Const<R>: ToUInt,
Rust const generics does not support arithmetic, so we have to specify the view’s dimension(R) as well
fn len(&self) -> usize
fn is_empty(&self) -> bool
fn get(&self, index: [usize; N]) -> Option<&TVal>
fn to_owned(self) -> JaggedArrayOwnedView<TVal, TNum, N>where
TVal: Clone,
source§impl<TVal: PartialEq, TNum, const N: usize> PartialEq for JaggedArrayOwnedView<TVal, TNum, N>
impl<TVal: PartialEq, TNum, const N: usize> PartialEq for JaggedArrayOwnedView<TVal, TNum, N>
source§fn eq(&self, other: &JaggedArrayOwnedView<TVal, TNum, N>) -> bool
fn eq(&self, other: &JaggedArrayOwnedView<TVal, TNum, N>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<TVal: Eq, TNum, const N: usize> Eq for JaggedArrayOwnedView<TVal, TNum, N>
impl<TVal, TNum, const N: usize> StructuralPartialEq for JaggedArrayOwnedView<TVal, TNum, N>
Auto Trait Implementations§
impl<TVal, TNum, const N: usize> !Freeze for JaggedArrayOwnedView<TVal, TNum, N>
impl<TVal, TNum, const N: usize> !RefUnwindSafe for JaggedArrayOwnedView<TVal, TNum, N>
impl<TVal, TNum, const N: usize> Send for JaggedArrayOwnedView<TVal, TNum, N>
impl<TVal, TNum, const N: usize> Sync for JaggedArrayOwnedView<TVal, TNum, N>
impl<TVal, TNum, const N: usize> !Unpin for JaggedArrayOwnedView<TVal, TNum, N>
impl<TVal, TNum, const N: usize> !UnwindSafe for JaggedArrayOwnedView<TVal, TNum, N>
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