[][src]Struct rendy_resource::image::Image

pub struct Image<B: Backend> { /* fields omitted */ }

Generic image object wrapper.

Parameters

T - type of the memory object of memory block. B - raw image type.

Methods

impl<B> Image<B> where
    B: Backend
[src]

pub fn keep_alive(&self) -> KeepAlive[src]

Creates KeepAlive handler to extend image lifetime.

pub fn raw(&self) -> &B::Image[src]

Get raw image handle.

Safety

Raw image handler should not be usage to violate this object valid usage.

pub fn info(&self) -> Info[src]

Get image Info.

pub fn kind(&self) -> Kind[src]

Get Kind of the image.

pub fn format(&self) -> Format[src]

Get Format of the image.

pub fn levels(&self) -> u8[src]

Get levels count of the image.

pub fn layers(&self) -> u16[src]

Get layers count of the image.

Trait Implementations

impl<B: Debug + Backend> Debug for Image<B>[src]

Auto Trait Implementations

impl<B> Send for Image<B> where
    <B as Backend>::Image: Send + Sync

impl<B> Sync for Image<B> where
    <B as Backend>::Image: Send + Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> Supports for T[src]

impl<T> Erased for T