pub trait PySliceMethods<'py>: Sealed {
// Required method
fn indices(&self, length: isize) -> Result<PySliceIndices, PyErr>;
}Expand description
Implementation of functionality for PySlice.
These methods are defined for the Bound<'py, PyTuple> smart pointer, so to use method call
syntax these methods are separated into a trait, because stable Rust does not yet support
arbitrary_self_types.