[][src]Trait web_glitz::image::texture_3d::LevelLayersMutIndex

pub trait LevelLayersMutIndex<'a, F> {
    type Output;
    fn get_mut(self, layers: &'a mut LevelLayersMut<F>) -> Option<Self::Output>;
unsafe fn get_unchecked_mut(
        self,
        layers: &'a mut LevelLayersMut<F>
    ) -> Self::Output; }

A helper trait for indexing a LevelLayersMut.

See LevelsMut::get_mut and LevelsMut::get_unchecked_mut.

Associated Types

type Output

The output type returned by the indexing operations.

Loading content...

Required methods

fn get_mut(self, layers: &'a mut LevelLayersMut<F>) -> Option<Self::Output>

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

unsafe fn get_unchecked_mut(
    self,
    layers: &'a mut LevelLayersMut<F>
) -> Self::Output

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

Loading content...

Implementations on Foreign Types

impl<'a, F> LevelLayersMutIndex<'a, F> for usize where
    F: 'a, 
[src]

type Output = LevelLayerMut<'a, F>

impl<'a, F> LevelLayersMutIndex<'a, F> for RangeFull where
    F: 'a, 
[src]

type Output = LevelLayersMut<'a, F>

impl<'a, F> LevelLayersMutIndex<'a, F> for Range<usize> where
    F: 'a, 
[src]

type Output = LevelLayersMut<'a, F>

impl<'a, F> LevelLayersMutIndex<'a, F> for RangeInclusive<usize> where
    F: 'a, 
[src]

type Output = LevelLayersMut<'a, F>

impl<'a, F> LevelLayersMutIndex<'a, F> for RangeFrom<usize> where
    F: 'a, 
[src]

type Output = LevelLayersMut<'a, F>

impl<'a, F> LevelLayersMutIndex<'a, F> for RangeTo<usize> where
    F: 'a, 
[src]

type Output = LevelLayersMut<'a, F>

impl<'a, F> LevelLayersMutIndex<'a, F> for RangeToInclusive<usize> where
    F: 'a, 
[src]

type Output = LevelLayersMut<'a, F>

Loading content...

Implementors

Loading content...