Struct proc_macro2::Term
[−]
[src]
pub struct Term { /* fields omitted */ }
Methods
impl Term
[src]
pub fn new(string: &str, span: Span) -> Term
[src]
pub fn as_str(&self) -> &str
[src]
pub fn span(&self) -> Span
[src]
pub fn set_span(&mut self, span: Span)
[src]
Trait Implementations
impl From<Term> for TokenTree
[src]
impl Copy for Term
[src]
impl Clone for Term
[src]
fn clone(&self) -> Term
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for Term
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more