Struct arcdps_imgui::Textures
source · pub struct Textures<T> { /* private fields */ }
Expand description
Generic texture mapping for use by renderers.
Implementations§
source§impl<T> Textures<T>
impl<T> Textures<T>
pub fn new() -> Self
pub fn insert(&mut self, texture: T) -> TextureId
pub fn replace(&mut self, id: TextureId, texture: T) -> Option<T>
pub fn remove(&mut self, id: TextureId) -> Option<T>
pub fn get(&self, id: TextureId) -> Option<&T>
pub fn get_mut(&mut self, id: TextureId) -> Option<&mut T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Textures<T>
impl<T> RefUnwindSafe for Textures<T>where
T: RefUnwindSafe,
impl<T> Send for Textures<T>where
T: Send,
impl<T> Sync for Textures<T>where
T: Sync,
impl<T> Unpin for Textures<T>where
T: Unpin,
impl<T> UnwindSafe for Textures<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