pub fn to_char_literal(&self) -> Option<char> {
        if let Value::Literal(lit) = self {
            return match lit {
                Lit::Char(x) => Some(x.value()),
                _ => None,
            };
        }

        None
    }
/// Returns the `char` representation of this value or `None` if is not a char literal.
Returns the `char` representation of this value or `None` if is not a char literal.
Returns the ` char ` representation of this value or ` None ` if is not a char literal .
pub fn to_char_literal(&self) -> Option<char> {
        if let Value::Literal(lit) = self {
            return match lit {
                Lit::Char(x) => Some(x.value()),
                _ => None,
            };
        }
        None
    }
pub fn to_char_literal ( & self ) -> Option < char > { if let Value :: Literal ( lit ) = self { return match lit { Lit :: Char ( x ) => Some ( x . value ( ) ) , _ => None , } ; } None }
Returns the `char` representation of this value or `None` if is not a char literal.
Returns the ` char ` representation of this value or ` None ` if is not a char literal .
&self
&self