pub struct GPUAssets<T: 'static + Send + Sync> { /* private fields */ }Implementations§
Source§impl<T: 'static + Send + Sync> GPUAssets<T>
impl<T: 'static + Send + Sync> GPUAssets<T>
pub fn new() -> Self
pub fn insert(&mut self, handle: RawAssetHandle, asset: T) -> Option<T>
pub fn get(&self, handle: RawAssetHandle) -> Option<&T>
pub fn get_mut(&mut self, handle: RawAssetHandle) -> Option<&mut T>
pub fn remove(&mut self, handle: RawAssetHandle) -> Option<T>
pub fn contains(&self, handle: RawAssetHandle) -> bool
Auto Trait Implementations§
impl<T> Freeze for GPUAssets<T>
impl<T> RefUnwindSafe for GPUAssets<T>where
T: RefUnwindSafe,
impl<T> Send for GPUAssets<T>
impl<T> Sync for GPUAssets<T>
impl<T> Unpin for GPUAssets<T>where
T: Unpin,
impl<T> UnsafeUnpin for GPUAssets<T>
impl<T> UnwindSafe for GPUAssets<T>where
T: UnwindSafe,
Blanket Implementations§
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