Skip to main content

python_slice

Function python_slice 

Source
pub fn python_slice(len: usize, start: i128, stop: i128) -> Range<usize> ⓘ
Expand description

Shared streamed texture spans and Python slicing. Python’s data[start:stop], including negative indices and clamping.