Trait web_glitz::image::texture_2d_array::LevelSubImageLayersIndex [−][src]
pub trait LevelSubImageLayersIndex<'a, F> {
type Output;
fn get(self, layers: &'a LevelSubImageLayers<'_, F>) -> Option<Self::Output>;
unsafe fn get_unchecked(
self,
layers: &'a LevelSubImageLayers<'_, F>
) -> Self::Output;
}
Expand description
A helper trait for indexing LevelSubImageLayers.
See LevelSubImageLayers::get and LevelSubImageLayers::get_unchecked.
Associated Types
Required methods
fn get(self, layers: &'a LevelSubImageLayers<'_, F>) -> Option<Self::Output>
fn get(self, layers: &'a LevelSubImageLayers<'_, F>) -> Option<Self::Output>
Returns the output for this operation if in bounds, or None
otherwise.
unsafe fn get_unchecked(
self,
layers: &'a LevelSubImageLayers<'_, F>
) -> Self::Output
unsafe fn get_unchecked(
self,
layers: &'a LevelSubImageLayers<'_, F>
) -> Self::Output
Returns the output for this operation, without performing any bounds checking.