Trait nalgebra::base::SliceRange
source · [−]pub trait SliceRange<D: Dim> {
type Size: Dim;
fn begin(&self, shape: D) -> usize;
fn end(&self, shape: D) -> usize;
fn size(&self, shape: D) -> Self::Size;
}Expand description
A range with a size that may be known at compile-time.
This may be:
- A single
usizeindex, e.g.,4 - A left-open range
std::ops::RangeTo, e.g.,.. 4 - A right-open range
std::ops::RangeFrom, e.g.,4 .. - A full range
std::ops::RangeFull, e.g.,..
Associated Types
Required methods
The index immediately after the last index inside of the range.