mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-18 08:58:36 +00:00
Merge pull request #353 from 8bitkitkat/master
Add get_mut to Textures struct
This commit is contained in:
commit
b934a20c97
@ -75,4 +75,8 @@ impl<T> Textures<T> {
|
||||
pub fn get(&self, id: TextureId) -> Option<&T> {
|
||||
self.textures.get(&id.0)
|
||||
}
|
||||
|
||||
pub fn get_mut(&mut self, id: TextureId) -> Option<&mut T> {
|
||||
self.textures.get_mut(&id.0)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user