Trait luminance::tess::View[][src]

pub trait View<B, V, I, W, S, Idx> where
    B: ?Sized + TessBackend<V, I, W, S>,
    V: TessVertexData<S>,
    I: TessIndex,
    W: TessVertexData<S>,
    S: ?Sized
{ fn view(
        &self,
        idx: Idx
    ) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>;
fn inst_view(
        &self,
        idx: Idx,
        inst_nb: usize
    ) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>; }
Expand description

TessView helper trait.

This trait helps to create TessView by allowing using the Rust range operators, such as

  • ..; the full range operator.
  • a .. b; the range operator.
  • a ..; the range-from operator.
  • .. b; the range-to operator.
  • ..= b; the inclusive range-to operator.

Required methods

Slice a tessellation object and yields a TessView according to the index range.

Slice a tesselation object and yields a TessView according to the index range with as many instances as specified.

Implementors