Struct proc_macro::Term
[−]
[src]
pub struct Term(_);
An interned string.
Methods
impl Term
[src]
impl Term
pub fn intern(string: &str) -> Term
[src]
pub fn intern(string: &str) -> Term
Intern a string into a Term
.
pub fn as_str(&self) -> &str
[src]
pub fn as_str(&self) -> &str
Get a reference to the interned string.
Trait Implementations
impl Copy for Term
[src]
impl Copy for Term
impl Clone for Term
[src]
impl Clone for Term
fn clone(&self) -> Term
[src]
fn clone(&self) -> Term
Returns 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