Trait web_glitz::image::texture_2d_array::LevelsIndex[][src]

pub trait LevelsIndex<'a, F> {
    type Output;
    fn get(self, levels: &'a Levels<'_, F>) -> Option<Self::Output>;
unsafe fn get_unchecked(self, levels: &'a Levels<'_, F>) -> Self::Output; }
Expand description

A helper trait for indexing Levels.

See Levels::get and Levels::get_unchecked.

Associated Types

The output type returned by the indexing operations.

Required methods

Returns the output for this operation if in bounds, or None otherwise.

Returns the output for this operation, without performing any bounds checking.

Implementations on Foreign Types

Implementors