pub struct PySliceIndices {
pub start: isize,
pub stop: isize,
pub step: isize,
pub slicelength: usize,
}
Expand description
Return value from PySliceMethods::indices
.
Fields§
§start: isize
Start of the slice
It can be -1 when the step is negative, otherwise it’s non-negative.
stop: isize
End of the slice
It can be -1 when the step is negative, otherwise it’s non-negative.
step: isize
Increment to use when iterating the slice from start
to stop
.
slicelength: usize
The length of the slice calculated from the original input sequence.
Implementations§
Trait Implementations§
Source§impl Debug for PySliceIndices
impl Debug for PySliceIndices
Source§impl PartialEq for PySliceIndices
impl PartialEq for PySliceIndices
Source§impl ToPyObject for PySliceIndices
impl ToPyObject for PySliceIndices
impl Eq for PySliceIndices
impl StructuralPartialEq for PySliceIndices
Auto Trait Implementations§
impl Freeze for PySliceIndices
impl RefUnwindSafe for PySliceIndices
impl Send for PySliceIndices
impl Sync for PySliceIndices
impl Unpin for PySliceIndices
impl UnwindSafe for PySliceIndices
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