BitmapRef

Struct BitmapRef 

Source
pub struct BitmapRef<'owner>(/* private fields */);

Implementations§

Source§

impl<'owner> BitmapRef<'owner>

Source

pub fn into_bitmap( self, ) -> Result<Bitmap<<Self as BitmapApi>::Api, false>, NullPtrError>

Source

pub fn into_bitmap_with<Api: Api>( self, api: Api, ) -> Result<Bitmap<Api, false>, NullPtrError>

Source

pub fn null() -> Self

Trait Implementations§

Source§

impl AsRaw for BitmapRef<'_>

Source§

type Type = LCDBitmap

Source§

unsafe fn as_raw(&self) -> *mut LCDBitmap

This method ia actually safe. Unsafety is because so we’re removing owners lifetime that used by some API parts.
Source§

impl BitmapApi for BitmapRef<'_>

Source§

type Api = Default

Source§

fn api(&self) -> Self::Api
where Self::Api: Copy,

Source§

fn api_ref(&self) -> &Self::Api

Source§

impl From<*mut LCDBitmap> for BitmapRef<'_>

Source§

fn from(ptr: *mut LCDBitmap) -> Self

Converts to this type from the input type.
Source§

impl AnyBitmap for BitmapRef<'_>

Auto Trait Implementations§

§

impl<'owner> Freeze for BitmapRef<'owner>

§

impl<'owner> RefUnwindSafe for BitmapRef<'owner>

§

impl<'owner> !Send for BitmapRef<'owner>

§

impl<'owner> !Sync for BitmapRef<'owner>

§

impl<'owner> Unpin for BitmapRef<'owner>

§

impl<'owner> UnwindSafe for BitmapRef<'owner>

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 4 bytes