[−][src]Struct rendy_resource::image::Image
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]
B: Backend,
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
Auto Trait Implementations
impl<B> Send for Image<B> where
<B as Backend>::Image: Send + Sync,
<B as Backend>::Image: Send + Sync,
impl<B> Sync for Image<B> where
<B as Backend>::Image: Send + Sync,
<B as Backend>::Image: Send + Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,