Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pub fn remove_child(&mut self, child: &Box<View>) -> Option<Box<View>>
- {
- match self.children.iter().position(|v| ptr::eq(v, child)) {
- Some(index) => Some(self.children.remove(index)),
- None => None
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement