[−][src]Trait luminance::tess::View
TessView
helper trait.
This trait helps to create TessView
by allowing using the Rust range operators, such as
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>
&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.
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]
B: TessBackend<V, I, W, S>,
V: TessVertexData<S>,
I: TessIndex,
W: TessVertexData<S>,
S: ?Sized,
fn view(
&self,
range: Range<usize>
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
[src]
&self,
range: Range<usize>
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
fn inst_view(
&self,
range: Range<usize>,
inst_nb: usize
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
[src]
&self,
range: Range<usize>,
inst_nb: usize
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
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]
B: TessBackend<V, I, W, S>,
V: TessVertexData<S>,
I: TessIndex,
W: TessVertexData<S>,
S: ?Sized,
fn view(
&self,
from: RangeFrom<usize>
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
[src]
&self,
from: RangeFrom<usize>
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
fn inst_view(
&self,
from: RangeFrom<usize>,
inst_nb: usize
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
[src]
&self,
from: RangeFrom<usize>,
inst_nb: usize
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
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]
B: TessBackend<V, I, W, S>,
V: TessVertexData<S>,
I: TessIndex,
W: TessVertexData<S>,
S: ?Sized,
fn view(
&self,
_: RangeFull
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
[src]
&self,
_: RangeFull
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
fn inst_view(
&self,
_: RangeFull,
inst_nb: usize
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
[src]
&self,
_: RangeFull,
inst_nb: usize
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
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]
B: TessBackend<V, I, W, S>,
V: TessVertexData<S>,
I: TessIndex,
W: TessVertexData<S>,
S: ?Sized,
fn view(
&self,
range: RangeInclusive<usize>
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
[src]
&self,
range: RangeInclusive<usize>
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
fn inst_view(
&self,
range: RangeInclusive<usize>,
inst_nb: usize
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
[src]
&self,
range: RangeInclusive<usize>,
inst_nb: usize
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
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]
B: TessBackend<V, I, W, S>,
V: TessVertexData<S>,
I: TessIndex,
W: TessVertexData<S>,
S: ?Sized,
fn view(
&self,
to: RangeTo<usize>
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
[src]
&self,
to: RangeTo<usize>
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
fn inst_view(
&self,
to: RangeTo<usize>,
inst_nb: usize
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
[src]
&self,
to: RangeTo<usize>,
inst_nb: usize
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
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]
B: TessBackend<V, I, W, S>,
V: TessVertexData<S>,
I: TessIndex,
W: TessVertexData<S>,
S: ?Sized,
fn view(
&self,
to: RangeToInclusive<usize>
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
[src]
&self,
to: RangeToInclusive<usize>
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
fn inst_view(
&self,
to: RangeToInclusive<usize>,
inst_nb: usize
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>
[src]
&self,
to: RangeToInclusive<usize>,
inst_nb: usize
) -> Result<TessView<'_, B, V, I, W, S>, TessViewError>