[][src]Struct web_glitz::image::texture_cube::LevelMut

pub struct LevelMut<'a, F> { /* fields omitted */ }

A mutable reference to a [Texture2D] mipmap level.

Derefs to Level.

Implementations

impl<'a, F> LevelMut<'a, F>[src]

pub fn positive_x_mut(&mut self) -> LevelFaceMut<'_, F>[src]

Returns a mutable reference to the "positive x" face of the level.

pub fn negative_x_mut(&mut self) -> LevelFaceMut<'_, F>[src]

Returns a mutable reference to the "negative x" face of the level.

pub fn positive_y_mut(&mut self) -> LevelFaceMut<'_, F>[src]

Returns a mutable reference to the "positive y" face of the level.

pub fn negative_y_mut(&mut self) -> LevelFaceMut<'_, F>[src]

Returns a mutable reference to the "negative y" face of the level.

pub fn positive_z_mut(&mut self) -> LevelFaceMut<'_, F>[src]

Returns a mutable reference to the "positive z" face of the level.

pub fn negative_z_mut(&mut self) -> LevelFaceMut<'_, F>[src]

Returns a mutable reference to the "negative z" face of the level.

Methods from Deref<Target = Level<'a, F>>

pub fn level(&self) -> usize[src]

Returns the integer that identifies this level.

For example, if this Level is the texture's base level, returns 0; if it is the second level, returns 1; etc.

pub fn width(&self) -> u32[src]

Returns the width of this level.

pub fn height(&self) -> u32[src]

Returns the height of this level.

pub fn positive_x(&self) -> LevelFace<'_, F>[src]

Returns a reference to the "positive x" face for this level.

pub fn negative_x(&self) -> LevelFace<'_, F>[src]

Returns a reference to the "negative x" face for this level.

pub fn positive_y(&self) -> LevelFace<'_, F>[src]

Returns a reference to the "positive y" face for this level.

pub fn negative_y(&self) -> LevelFace<'_, F>[src]

Returns a reference to the "negative y" face for this level.

pub fn positive_z(&self) -> LevelFace<'_, F>[src]

Returns a reference to the "positive z" face for this level.

pub fn negative_z(&self) -> LevelFace<'_, F>[src]

Returns a reference to the "negative z" face for this level.

Trait Implementations

impl<'a, F> Deref for LevelMut<'a, F>[src]

type Target = Level<'a, F>

The resulting type after dereferencing.

impl<'a, F: Hash> Hash for LevelMut<'a, F>[src]

impl<'a, F: PartialEq> PartialEq<LevelMut<'a, F>> for LevelMut<'a, F>[src]

impl<'a, F> StructuralPartialEq for LevelMut<'a, F>[src]

Auto Trait Implementations

impl<'a, F> !RefUnwindSafe for LevelMut<'a, F>

impl<'a, F> !Send for LevelMut<'a, F>

impl<'a, F> !Sync for LevelMut<'a, F>

impl<'a, F> Unpin for LevelMut<'a, F>

impl<'a, F> !UnwindSafe for LevelMut<'a, F>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<D, T> IntoBuffer<T> for D where
    D: Borrow<T> + 'static,
    T: Copy + 'static, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.