Struct proc_macro::Term
[−]
[src]
pub struct Term(_);
An interned string.
Methods
impl Term[src]
impl Termpub fn intern(string: &str) -> Term[src]
pub fn intern(string: &str) -> TermIntern a string into a Term.
pub fn as_str(&self) -> &str[src]
pub fn as_str(&self) -> &strGet a reference to the interned string.
Trait Implementations
impl Copy for Term[src]
impl Copy for Termimpl Clone for Term[src]
impl Clone for Termfn clone(&self) -> Term[src]
fn clone(&self) -> TermReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Term[src]
impl Debug for Term