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