[−][src]Trait nalgebra::base::SliceRange
A range with a size that may be known at compile-time.
This may be:
- A single
usize
index, 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
Loading content...Required methods
fn begin(&self, shape: D) -> usize
The start index of the range.
fn end(&self, shape: D) -> usize
The index immediately after the last index inside of the range.
fn size(&self, shape: D) -> Self::Size
The number of elements of the range, i.e., self.end - self.begin
.