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