Guest User

Untitled

a guest
Jul 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. fn get_drawable_mut(&mut self, uuid: &Uuid) -> &mut Box<dyn Drawable> {
  2. let i = self.component_map.read().unwrap().get(uuid).unwrap();
  3. use std::ops::IndexMut;
  4. self.drawables.write().unwrap().write().unwrap().index_mut(*i)
  5. }
Add Comment
Please, Sign In to add comment