pub fn new(c: char) -> Self {
        crate::macros::current_context(|ctx| Self {
            token: ast::Token {
                kind: ast::Kind::Char(ast::CopySource::Inline(c)),
                span: ctx.macro_span(),
            },
            source: ast::CopySource::Inline(c),
        })
    }
/// Construct a new literal character.
///
/// # Panics
///
/// This panics if called outside of a macro context.
Construct a new literal character.
Construct a new literal character .
pub fn new(c: char) -> Self {
        crate::macros::current_context(|ctx| Self {
            token: ast::Token {
                kind: ast::Kind::Char(ast::CopySource::Inline(c)),
                span: ctx.macro_span(),
            },
            source: ast::CopySource::Inline(c),
        })
    }
pub fn new ( c : char ) -> Self { crate :: macros :: current_context ( | ctx | Self { token : ast :: Token { kind : ast :: Kind :: Char ( ast :: CopySource :: Inline ( c ) ) , span : ctx . macro_span ( ) , } , source : ast :: CopySource :: Inline ( c ) , } ) }
Construct a new literal character.
Construct a new literal character .
c
char
c
char
panics
This panics if called outside of a macro context.
This panics if called outside of a macro context .