pub fn on_char(&self) -> char {
        match self {
            EventData::OnChar(c) => *c,
            d => panic!("Wrong data type: {:?}", d)
        }
    }
/// Unwraps event data into a `char`. Panics if it's not the right type.
Unwraps event data into a `char`. Panics if it's not the right type.
Unwraps event data into a ` char ` . Panics if it ' s not the right type .
pub fn on_char(&self) -> char {
        match self {
            EventData::OnChar(c) => *c,
            d => panic!("Wrong data type: {:?}", d)
        }
    }
pub fn on_char ( & self ) -> char { match self { EventData :: OnChar ( c ) => * c , d => panic ! ( " " d ) } }
Unwraps event data into a `char`.
Unwraps event data into a ` char ` .
&self