Skip to main content

to_span

Function to_span 

Source
fn to_span(axis: &str, span: impl SpanBounds) -> (usize, Option<usize>)
Expand description

Lowers a SpanBounds to (start, length). A None length means the scope’s edge.

§Panics

If the range is empty.