[−][src]Trait luminance::tess::TessSliceIndex
The Tess
slice index feature.
That trait allows to use the syntax tess.slice(_)
where _
is one of Rust range operators:
..
for the whole range.a .. b
for a sub-range, excluding the right part.a ..= b
for a sub-range, including the right part.a ..
for a sub-range open on the right part... b
for a sub-range open on the left part and excluding the right part.- `..= b for a sub-range open on the left part and including the right part.
It’s technically possible to add any kind of index type, even though not really useful so far.
Required methods
fn slice(&self, idx: Idx) -> TessSlice
Slice a tesselation object and yields a TessSlice
according to the index range.