pub enum AxisIndex {
Index(isize),
Slice {
start: Option<isize>,
stop: Option<isize>,
step: isize,
},
NewAxis,
Ellipsis,
}Expand description
One item in a tensor indexing expression.
Variants§
Index(isize)
Select one axis element, removing that axis from the result.
Slice
Select an axis interval using Python’s half-open slicing rules.
Fields
NewAxis
Insert a length-one axis into the result.
Ellipsis
Expand to enough full slices to consume the remaining input axes.
Trait Implementations§
impl Eq for AxisIndex
impl StructuralPartialEq for AxisIndex
Auto Trait Implementations§
impl Freeze for AxisIndex
impl RefUnwindSafe for AxisIndex
impl Send for AxisIndex
impl Sync for AxisIndex
impl Unpin for AxisIndex
impl UnsafeUnpin for AxisIndex
impl UnwindSafe for AxisIndex
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