Struct allegro::bitmap::Bitmap[][src]

pub struct Bitmap { /* fields omitted */ }

Implementations

impl Bitmap[src]

pub fn new(_: &Core, w: i32, h: i32) -> Result<Bitmap, ()>[src]

pub fn load(_: &Core, filename: &str) -> Result<Bitmap, ()>[src]

pub unsafe fn wrap(bmp: *mut ALLEGRO_BITMAP, own: bool) -> Bitmap[src]

Wraps an Allegro bitmap.

pub unsafe fn clone_and_wrap(bmp: *mut ALLEGRO_BITMAP) -> Result<Bitmap, ()>[src]

pub fn maybe_clone(&self) -> Result<Bitmap, ()>[src]

Trait Implementations

impl BitmapLike for Bitmap[src]

impl Clone for Bitmap[src]

impl Drop for Bitmap[src]

impl Send for Bitmap[src]

impl Sync for Bitmap[src]

Auto Trait Implementations

impl !RefUnwindSafe for Bitmap

impl Unpin for Bitmap

impl !UnwindSafe for Bitmap

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.