pub type PySliceIndices = PySliceIndices;👎Deprecated since 0.30.0:
moved to pyo3::types::slice::PySliceIndices
Expand description
Deprecated alias for slice::PySliceIndices.
Aliased Type§
pub struct PySliceIndices {
pub start: isize,
pub stop: isize,
pub step: isize,
pub slicelength: usize,
}Fields§
§start: isizeStart of the slice
It can be -1 when the step is negative, otherwise it’s non-negative.
stop: isizeEnd of the slice
It can be -1 when the step is negative, otherwise it’s non-negative.
step: isizeIncrement to use when iterating the slice from start to stop.
slicelength: usizeThe length of the slice calculated from the original input sequence.