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

pub trait View<B: ?Sized, V, I, W, S, Idx> where
    B: 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>; }

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

fn view(&self, idx: Idx) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>

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

fn inst_view(
    &self,
    idx: Idx,
    inst_nb: usize
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>

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

Loading content...

Implementors

impl<B: ?Sized, V, I, W, S> View<B, V, I, W, S, Range<usize>> for Tess<B, V, I, W, S> where
    B: TessBackend<V, I, W, S>,
    V: TessVertexData<S>,
    I: TessIndex,
    W: TessVertexData<S>,
    S: ?Sized
[src]

impl<B: ?Sized, V, I, W, S> View<B, V, I, W, S, RangeFrom<usize>> for Tess<B, V, I, W, S> where
    B: TessBackend<V, I, W, S>,
    V: TessVertexData<S>,
    I: TessIndex,
    W: TessVertexData<S>,
    S: ?Sized
[src]

impl<B: ?Sized, V, I, W, S> View<B, V, I, W, S, RangeFull> for Tess<B, V, I, W, S> where
    B: TessBackend<V, I, W, S>,
    V: TessVertexData<S>,
    I: TessIndex,
    W: TessVertexData<S>,
    S: ?Sized
[src]

impl<B: ?Sized, V, I, W, S> View<B, V, I, W, S, RangeInclusive<usize>> for Tess<B, V, I, W, S> where
    B: TessBackend<V, I, W, S>,
    V: TessVertexData<S>,
    I: TessIndex,
    W: TessVertexData<S>,
    S: ?Sized
[src]

impl<B: ?Sized, V, I, W, S> View<B, V, I, W, S, RangeTo<usize>> for Tess<B, V, I, W, S> where
    B: TessBackend<V, I, W, S>,
    V: TessVertexData<S>,
    I: TessIndex,
    W: TessVertexData<S>,
    S: ?Sized
[src]

impl<B: ?Sized, V, I, W, S> View<B, V, I, W, S, RangeToInclusive<usize>> for Tess<B, V, I, W, S> where
    B: TessBackend<V, I, W, S>,
    V: TessVertexData<S>,
    I: TessIndex,
    W: TessVertexData<S>,
    S: ?Sized
[src]

Loading content...