Struct proc_macro2::Op
[−]
[src]
pub struct Op { /* fields omitted */ }
Methods
impl Op
[src]
pub fn new(op: char, spacing: Spacing) -> Op
[src]
pub fn op(&self) -> char
[src]
pub fn spacing(&self) -> Spacing
[src]
pub fn span(&self) -> Span
[src]
pub fn set_span(&mut self, span: Span)
[src]
Trait Implementations
impl From<Op> for TokenTree
[src]
impl Copy for Op
[src]
impl Clone for Op
[src]
fn clone(&self) -> Op
[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 Op
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more