Guest User

Untitled

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