Struct crabgrab::feature::bitmap::PooledBitmap

source ·
pub struct PooledBitmap<T: Sized + Copy + Zeroable> {
    pub width: usize,
    pub height: usize,
    /* private fields */
}
Expand description

A pooled bitmap, belinging to it’s creator BitmapPool. When this bitmap is dropped, it will be returned to it’s pool.

Fields§

§width: usize§height: usize

Trait Implementations§

source§

impl<T: Sized + Zeroable + Copy> AsMut<[T]> for PooledBitmap<T>

source§

fn as_mut(&mut self) -> &mut [T]

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Sized + Zeroable + Copy> AsRef<[T]> for PooledBitmap<T>

source§

fn as_ref(&self) -> &[T]

Converts this type into a shared reference of the (usually inferred) input type.

Auto Trait Implementations§

§

impl<T> Freeze for PooledBitmap<T>

§

impl<T> !RefUnwindSafe for PooledBitmap<T>

§

impl<T> Send for PooledBitmap<T>
where T: Send,

§

impl<T> Sync for PooledBitmap<T>
where T: Sync + Send,

§

impl<T> Unpin for PooledBitmap<T>

§

impl<T> !UnwindSafe for PooledBitmap<T>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

fn into(self) -> U

Calls U::from(self).

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

source§

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

§

type Error = Infallible

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

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

Performs the conversion.
source§

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.
source§

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

Performs the conversion.
source§

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

source§

impl<T> BitmapDataArgbUnormPacked2101010 for T
where T: AsRef<[u32]> + AsMut<[u32]>,

source§

impl<T> BitmapDataBgra8x4 for T
where T: AsRef<[[u8; 4]]> + AsMut<[[u8; 4]]>,

source§

impl<T> BitmapDataChroma for T
where T: AsRef<[[u8; 2]]> + AsMut<[[u8; 2]]>,

source§

impl<T> BitmapDataLuma for T
where T: AsRef<[u8]> + AsMut<[u8]>,

source§

impl<T> BitmapDataRgbaF16x4 for T
where T: AsRef<[[f16; 4]]> + AsMut<[[f16; 4]]>,

§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T
where T: Sync,