pub enum Index<B: Backend> {
Int(i64),
Slice(Slice),
Dynamic(Scalar<B, i32>),
NewAxis,
Ellipsis,
}Expand description
One component of an index.
Variants§
Int(i64)
A static integer (negative counts from the end).
Slice(Slice)
A static slice.
Dynamic(Scalar<B, i32>)
A run-time index (negative counts from the end).
NewAxis
A new dimension of size 1.
Ellipsis
Whole dimensions.
Trait Implementations§
impl<B: Copy + Backend> Copy for Index<B>
Source§impl<B: Backend> From<RangeInclusive<i32>> for Index<B>
impl<B: Backend> From<RangeInclusive<i32>> for Index<B>
Source§fn from(r: RangeInclusive<i32>) -> Self
fn from(r: RangeInclusive<i32>) -> Self
Converts to this type from the input type.
Source§impl<B: Backend> From<RangeInclusive<i64>> for Index<B>
impl<B: Backend> From<RangeInclusive<i64>> for Index<B>
Source§fn from(r: RangeInclusive<i64>) -> Self
fn from(r: RangeInclusive<i64>) -> Self
Converts to this type from the input type.
Source§impl<B: Backend> From<RangeInclusive<usize>> for Index<B>
impl<B: Backend> From<RangeInclusive<usize>> for Index<B>
Source§fn from(r: RangeInclusive<usize>) -> Self
fn from(r: RangeInclusive<usize>) -> Self
Converts to this type from the input type.
Source§impl<B: Backend> From<RangeToInclusive<i32>> for Index<B>
impl<B: Backend> From<RangeToInclusive<i32>> for Index<B>
Source§fn from(r: RangeToInclusive<i32>) -> Self
fn from(r: RangeToInclusive<i32>) -> Self
Converts to this type from the input type.
Source§impl<B: Backend> From<RangeToInclusive<i64>> for Index<B>
impl<B: Backend> From<RangeToInclusive<i64>> for Index<B>
Source§fn from(r: RangeToInclusive<i64>) -> Self
fn from(r: RangeToInclusive<i64>) -> Self
Converts to this type from the input type.
Source§impl<B: Backend> From<RangeToInclusive<usize>> for Index<B>
impl<B: Backend> From<RangeToInclusive<usize>> for Index<B>
Source§fn from(r: RangeToInclusive<usize>) -> Self
fn from(r: RangeToInclusive<usize>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<B> Freeze for Index<B>
impl<B> RefUnwindSafe for Index<B>
impl<B> Send for Index<B>
impl<B> Sync for Index<B>
impl<B> Unpin for Index<B>
impl<B> UnsafeUnpin for Index<B>
impl<B> UnwindSafe for Index<B>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<B, T> IntoIndices<B> for T
impl<B, T> IntoIndices<B> for T
Source§fn into_indices(self) -> Indices<B>
fn into_indices(self) -> Indices<B>
The components.