You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pointer_event_aware.rs
    path of file: ./repos/MoonZoon/crates/zoon/src/element/ability
    
    the code of the file until where you have to start completion: use crate::*;
use std::{cell::Cell, rc::Rc};

// ------ PointerEventAware ------

pub trait PointerEventAware: RawElWrapper + Sized {
    fn on_pointer_down(self, mut handler: impl FnMut() + 'static) -> Self {
        self.update_raw_el(|raw_el| {
            raw_el.event_handler(move |_: events_extra::PointerDown| handler())
        })
    }

    fn on_pointer_down_event(self, mut handler: impl FnMut(PointerEvent) + 'static) -> Self {
    
    fn on_pointer_leave(self, mut handler: impl FnMut() + 'static) -> Self {
        self.update_raw_el(|raw_el| {
            let dom_element = raw_el.dom_element().into();
            raw_el.event_handler(move |event: events_extra::PointerLeave| {
                if let Some(target) = event.target() {
                    // we are leaving from the element itself, not only from its child
                    if target == dom_element {
                        handler();
                    }
                }
            })
        })
    }