Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. pub fn remove_child(&mut self, child: &Box<View>) -> Option<Box<View>>
  2. {
  3. match self.children.iter().position(|v| ptr::eq(v, child)) {
  4. Some(index) => Some(self.children.remove(index)),
  5. None => None
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement