pub struct Rgba8ImageInMemory {
pub image_uid: String,
pub image: Arc<RgbaImage>,
}Fields§
§image_uid: String§image: Arc<RgbaImage>Trait Implementations§
Source§impl AsyncAssetKey<Result<Arc<ImageBuffer<Rgba<u8>, Vec<u8>>>, AssetError>> for Rgba8ImageInMemory
impl AsyncAssetKey<Result<Arc<ImageBuffer<Rgba<u8>, Vec<u8>>>, AssetError>> for Rgba8ImageInMemory
fn load<'async_trait>(
self,
_assets: AssetCache,
) -> Pin<Box<dyn Future<Output = Result<Arc<RgbaImage>, AssetError>> + Send + 'async_trait>>where
Self: 'async_trait,
Source§fn in_background(self) -> BackgroundKey<Self>where
Self: Sized,
fn in_background(self) -> BackgroundKey<Self>where
Self: Sized,
Adapter to make the key load in a background task. Read more
fn keepalive(&self) -> AssetKeepalive
fn drop_policy(&self) -> AssetLoadDropPolicy
fn cpu_size(&self, _asset: &T) -> Option<u64>
fn gpu_size(&self, _asset: &T) -> Option<u64>
Source§impl Clone for Rgba8ImageInMemory
impl Clone for Rgba8ImageInMemory
Source§fn clone(&self) -> Rgba8ImageInMemory
fn clone(&self) -> Rgba8ImageInMemory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Rgba8ImageInMemory
impl RefUnwindSafe for Rgba8ImageInMemory
impl Send for Rgba8ImageInMemory
impl Sync for Rgba8ImageInMemory
impl Unpin for Rgba8ImageInMemory
impl UnsafeUnpin for Rgba8ImageInMemory
impl UnwindSafe for Rgba8ImageInMemory
Blanket Implementations§
Source§impl<T, K> AsyncAssetKeyExt<T> for K
impl<T, K> AsyncAssetKeyExt<T> for K
fn key(&self) -> String
fn long_name(&self) -> String
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
assets: &'life1 AssetCache,
) -> Pin<Box<dyn Future<Output = T> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
K: 'async_trait,
Source§fn is_loaded(&self, assets: &AssetCache) -> Option<T>
fn is_loaded(&self, assets: &AssetCache) -> Option<T>
Returns
Some(T) if the asset is currently loaded, alive, and well. Read moreSource§fn peek(&self, assets: &AssetCache) -> Option<T>
fn peek(&self, assets: &AssetCache) -> Option<T>
If the asset is loaded, it will be returned. Otherwise, the loading will start loading in the background, and None will be returned
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more