pub struct Compound<const T: usize, const L: usize, const R: usize, Left, Right>where
CSum: CompoundSum<T, L, R>,{ /* private fields */ }Expand description
Represents compound combinations of fundemental indices.
Trait Implementations§
Source§impl<const N: usize, const T: usize, const L: usize, const R: usize, Left, Right> TensorIndex<N, T> for Compound<T, L, R, Left, Right>where
Left: TensorIndex<N, L>,
Right: TensorIndex<N, R>,
CSum: CompoundSum<T, L, R>,
impl<const N: usize, const T: usize, const L: usize, const R: usize, Left, Right> TensorIndex<N, T> for Compound<T, L, R, Left, Right>where
Left: TensorIndex<N, L>,
Right: TensorIndex<N, R>,
CSum: CompoundSum<T, L, R>,
Source§type Indices = CompoundIndices<N, T, L, R, <Left as TensorIndex<N, L>>::Indices, <Right as TensorIndex<N, R>>::Indices>
type Indices = CompoundIndices<N, T, L, R, <Left as TensorIndex<N, L>>::Indices, <Right as TensorIndex<N, R>>::Indices>
Type of iterator over valid tensor indices.
Source§fn offset_from_index(index: [usize; T]) -> usize
fn offset_from_index(index: [usize; T]) -> usize
Converts a valid index into a buffer offset for tensor storage.
Auto Trait Implementations§
impl<const T: usize, const L: usize, const R: usize, Left, Right> Freeze for Compound<T, L, R, Left, Right>
impl<const T: usize, const L: usize, const R: usize, Left, Right> RefUnwindSafe for Compound<T, L, R, Left, Right>
impl<const T: usize, const L: usize, const R: usize, Left, Right> Send for Compound<T, L, R, Left, Right>
impl<const T: usize, const L: usize, const R: usize, Left, Right> Sync for Compound<T, L, R, Left, Right>
impl<const T: usize, const L: usize, const R: usize, Left, Right> Unpin for Compound<T, L, R, Left, Right>
impl<const T: usize, const L: usize, const R: usize, Left, Right> UnsafeUnpin for Compound<T, L, R, Left, Right>
impl<const T: usize, const L: usize, const R: usize, Left, Right> UnwindSafe for Compound<T, L, R, Left, Right>
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