Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn get_drawable_mut(& mut self, uuid: &Uuid) -> Option<& mut dyn Drawable> {
- use std::ops::IndexMut;
- let id = self.component_map.get(uuid).map(|i| *i);
- id.map(|i| {
- self.drawables.index_mut(i)
- })
- }
Add Comment
Please, Sign In to add comment