Skip to main content

PySliceIndices

Type Alias PySliceIndices 

Source
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: 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.

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here