Struct solstice::image::Image[][src]

pub struct Image { /* fields omitted */ }

Implementations

impl Image[src]

pub fn new(
    ctx: &mut Context,
    texture_type: TextureType,
    format: PixelFormat,
    width: u32,
    height: u32,
    settings: Settings
) -> Result<Self, GraphicsError>
[src]

pub fn with_data(
    ctx: &mut Context,
    texture_type: TextureType,
    format: PixelFormat,
    width: u32,
    height: u32,
    data: &[u8],
    settings: Settings
) -> Result<Self, GraphicsError>
[src]

pub fn set_texture_info(&mut self, texture_info: TextureInfo)[src]

Trait Implementations

impl Clone for Image[src]

impl Debug for Image[src]

impl Texture for Image[src]

impl Texture for &Image[src]

Auto Trait Implementations

impl RefUnwindSafe for Image

impl Send for Image

impl Sync for Image

impl Unpin for Image

impl UnwindSafe for Image

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<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.