pub fn to_char(self) -> char {
        match self {
            Key::Char(c) => c,
            _ => '\0',
        }
    }
/// Convert a `Key` to its corresponding character. If no corresponding character exists, use
/// the null character.
Convert a `Key` to its corresponding character. If no corresponding character exists, use
the null character.
Convert a ` Key ` to its corresponding character . If no corresponding character exists use the null character .
pub fn to_char(self) -> char {
        match self {
            Key::Char(c) => c,
            _ => '\0',
        }
    }
pub fn to_char ( self ) -> char { match self { Key :: Char ( c ) => c , _ => '\0' , } }
Convert a `Key` to its corresponding character.
Convert a ` Key ` to its corresponding character .
self
self