pub trait TokenTreeLiteral: Sealed {
// Required methods
fn is_string(&self) -> bool;
fn string(&self) -> Option<String>;
}Expand description
Trait to parse literals
Required Methods§
Implementations on Foreign Types§
Source§impl TokenTreeLiteral for TokenTree
Available on crate feature proc-macro only.
impl TokenTreeLiteral for TokenTree
Available on crate feature
proc-macro only.Source§impl TokenTreeLiteral for TokenTree
Available on crate feature proc-macro2 only.
impl TokenTreeLiteral for TokenTree
Available on crate feature
proc-macro2 only.Source§impl TokenTreeLiteral for Literal
Available on crate feature proc-macro only.
impl TokenTreeLiteral for Literal
Available on crate feature
proc-macro only.Source§impl TokenTreeLiteral for Literal
Available on crate feature proc-macro2 only.
impl TokenTreeLiteral for Literal
Available on crate feature
proc-macro2 only.