Trait proc_macro_utils::TokenTreeLiteral
source · 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.