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
Required methods
Returns the output for this operation if in bounds, or None
otherwise.
unsafe fn get_unchecked(self, levels: &'a Levels<'_, F>) -> Self::Output
unsafe fn get_unchecked(self, levels: &'a Levels<'_, F>) -> Self::Output
Returns the output for this operation, without performing any bounds checking.