pub enum SliceAxis {
All,
Index(i64),
Range {
start: i64,
end: i64,
},
From(i64),
}Expand description
One axis in a slice (s![ax(), rg(2, 10)] or s![.., 2..10] via helpers).
Indices are signed and NumPy-style: negative values count from the end
(-1 = last), resolved against the axis’s (static) size.
Variants§
Trait Implementations§
impl Copy for SliceAxis
impl Eq for SliceAxis
impl StructuralPartialEq for SliceAxis
Auto Trait Implementations§
impl Freeze for SliceAxis
impl RefUnwindSafe for SliceAxis
impl Send for SliceAxis
impl Sync for SliceAxis
impl Unpin for SliceAxis
impl UnsafeUnpin for SliceAxis
impl UnwindSafe for SliceAxis
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