Struct proc_macro2::Literal
[−]
[src]
pub struct Literal { /* fields omitted */ }
Methods
impl Literal
[src]
pub fn u8_suffixed(n: u8) -> Literal
[src]
pub fn u16_suffixed(n: u16) -> Literal
[src]
pub fn u32_suffixed(n: u32) -> Literal
[src]
pub fn u64_suffixed(n: u64) -> Literal
[src]
pub fn usize_suffixed(n: usize) -> Literal
[src]
pub fn i8_suffixed(n: i8) -> Literal
[src]
pub fn i16_suffixed(n: i16) -> Literal
[src]
pub fn i32_suffixed(n: i32) -> Literal
[src]
pub fn i64_suffixed(n: i64) -> Literal
[src]
pub fn isize_suffixed(n: isize) -> Literal
[src]
pub fn u8_unsuffixed(n: u8) -> Literal
[src]
pub fn u16_unsuffixed(n: u16) -> Literal
[src]
pub fn u32_unsuffixed(n: u32) -> Literal
[src]
pub fn u64_unsuffixed(n: u64) -> Literal
[src]
pub fn usize_unsuffixed(n: usize) -> Literal
[src]
pub fn i8_unsuffixed(n: i8) -> Literal
[src]
pub fn i16_unsuffixed(n: i16) -> Literal
[src]
pub fn i32_unsuffixed(n: i32) -> Literal
[src]
pub fn i64_unsuffixed(n: i64) -> Literal
[src]
pub fn isize_unsuffixed(n: isize) -> Literal
[src]
pub fn f64_unsuffixed(f: f64) -> Literal
[src]
pub fn f64_suffixed(f: f64) -> Literal
[src]
pub fn f32_unsuffixed(f: f32) -> Literal
[src]
pub fn f32_suffixed(f: f32) -> Literal
[src]
pub fn string(string: &str) -> Literal
[src]
pub fn character(ch: char) -> Literal
[src]
pub fn byte_string(s: &[u8]) -> Literal
[src]
pub fn span(&self) -> Span
[src]
pub fn set_span(&mut self, span: Span)
[src]
Trait Implementations
impl From<Literal> for TokenTree
[src]
impl Clone for Literal
[src]
fn clone(&self) -> Literal
[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 Debug for Literal
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more