[][src]Trait luminance::tess::TessSliceIndex

pub trait TessSliceIndex<Idx> {
    fn slice(&self, idx: Idx) -> TessSlice;
}

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.

Loading content...

Implementors

impl TessSliceIndex<Range<usize>> for Tess[src]

impl TessSliceIndex<RangeFrom<usize>> for Tess[src]

impl TessSliceIndex<RangeFull> for Tess[src]

impl TessSliceIndex<RangeInclusive<usize>> for Tess[src]

impl TessSliceIndex<RangeTo<usize>> for Tess[src]

impl TessSliceIndex<RangeToInclusive<usize>> for Tess[src]

Loading content...