pub fn downcast_mut<T: FromEvent>(&mut self) -> Option<&mut T> {
        if T::is(self) {
            unsafe { Some(&mut *(self as *mut _ as *mut _)) }
        } else {
            None
        }
    }
/// Tries to downcast to a specific event type.
Tries to downcast to a specific event type.
Tries to downcast to a specific event type .
pub fn downcast_mut<T: FromEvent>(&mut self) -> Option<&mut T> {
        if T::is(self) {
            unsafe { Some(&mut *(self as *mut _ as *mut _)) }
        } else {
            None
        }
    }
pub fn downcast_mut < T : FromEvent > ( & mut self ) -> Option < & mut T > { if T :: is ( self ) { unsafe { Some ( & mut * ( self as * mut _ as * mut _ ) ) } } else { None } }
Tries to downcast to a specific event type.
Tries to downcast to a specific event type .
&mut self