[−][src]Trait web_glitz::image::texture_2d_array::LevelLayersIndex
A helper trait for indexing LevelLayers.
Associated Types
type Output
The output type returned by the indexing operations.
Required methods
fn get(self, layers: &'a LevelLayers<'_, F>) -> Option<Self::Output>
Returns the output for this operation if in bounds, or None otherwise.
unsafe fn get_unchecked(self, layers: &'a LevelLayers<'_, F>) -> Self::Output
Returns the output for this operation, without performing any bounds checking.
Implementations on Foreign Types
impl<'a, F> LevelLayersIndex<'a, F> for usize where
F: 'a, [src]
F: 'a,
type Output = LevelLayer<'a, F>
fn get(self, layers: &'a LevelLayers<'_, F>) -> Option<Self::Output>[src]
unsafe fn get_unchecked(self, layers: &'a LevelLayers<'_, F>) -> Self::Output[src]
impl<'a, F> LevelLayersIndex<'a, F> for RangeFull where
F: 'a, [src]
F: 'a,
type Output = LevelLayers<'a, F>
fn get(self, layers: &'a LevelLayers<'_, F>) -> Option<Self::Output>[src]
unsafe fn get_unchecked(self, layers: &'a LevelLayers<'_, F>) -> Self::Output[src]
impl<'a, F> LevelLayersIndex<'a, F> for Range<usize> where
F: 'a, [src]
F: 'a,
type Output = LevelLayers<'a, F>
fn get(self, layers: &'a LevelLayers<'_, F>) -> Option<Self::Output>[src]
unsafe fn get_unchecked(self, layers: &'a LevelLayers<'_, F>) -> Self::Output[src]
impl<'a, F> LevelLayersIndex<'a, F> for RangeInclusive<usize> where
F: 'a, [src]
F: 'a,
type Output = LevelLayers<'a, F>
fn get(self, layers: &'a LevelLayers<'_, F>) -> Option<Self::Output>[src]
unsafe fn get_unchecked(self, layers: &'a LevelLayers<'_, F>) -> Self::Output[src]
impl<'a, F> LevelLayersIndex<'a, F> for RangeFrom<usize> where
F: 'a, [src]
F: 'a,
type Output = LevelLayers<'a, F>
fn get(self, layers: &'a LevelLayers<'_, F>) -> Option<Self::Output>[src]
unsafe fn get_unchecked(self, layers: &'a LevelLayers<'_, F>) -> Self::Output[src]
impl<'a, F> LevelLayersIndex<'a, F> for RangeTo<usize> where
F: 'a, [src]
F: 'a,
type Output = LevelLayers<'a, F>
fn get(self, layers: &'a LevelLayers<'_, F>) -> Option<Self::Output>[src]
unsafe fn get_unchecked(self, layers: &'a LevelLayers<'_, F>) -> Self::Output[src]
impl<'a, F> LevelLayersIndex<'a, F> for RangeToInclusive<usize> where
F: 'a, [src]
F: 'a,