pub struct RadiantTextureManager(pub Arc<RwLock<TextureManager>>);
Tuple Fields§
§0: Arc<RwLock<TextureManager>>
Implementations§
Source§impl RadiantTextureManager
impl RadiantTextureManager
pub fn load_texture( &self, name: impl Into<String>, image: impl Into<ImageData>, options: TextureOptions, ) -> TextureHandle
pub fn tex_manager(&self) -> Arc<RwLock<TextureManager>>
Trait Implementations§
Source§impl Clone for RadiantTextureManager
impl Clone for RadiantTextureManager
Source§fn clone(&self) -> RadiantTextureManager
fn clone(&self) -> RadiantTextureManager
Returns a duplicate of the value. Read more
1.0.0 · 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 RadiantTextureManager
impl !RefUnwindSafe for RadiantTextureManager
impl Send for RadiantTextureManager
impl Sync for RadiantTextureManager
impl Unpin for RadiantTextureManager
impl !UnwindSafe for RadiantTextureManager
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