Struct proc_macro2::Literal
[−]
[src]
pub struct Literal(_);
Methods
impl Literal
[src]
fn integer(s: i64) -> Literal
[src]
fn u8(n: u8) -> Literal
[src]
fn u16(n: u16) -> Literal
[src]
fn u32(n: u32) -> Literal
[src]
fn u64(n: u64) -> Literal
[src]
fn usize(n: usize) -> Literal
[src]
fn i8(n: i8) -> Literal
[src]
fn i16(n: i16) -> Literal
[src]
fn i32(n: i32) -> Literal
[src]
fn i64(n: i64) -> Literal
[src]
fn isize(n: isize) -> Literal
[src]
fn float(f: f64) -> Literal
[src]
fn f64(f: f64) -> Literal
[src]
fn f32(f: f32) -> Literal
[src]
fn string(string: &str) -> Literal
[src]
fn character(ch: char) -> Literal
[src]
fn byte_string(s: &[u8]) -> Literal
[src]
fn byte_char(b: u8) -> Literal
[src]
fn doccomment(s: &str) -> Literal
[src]
fn raw_string(s: &str, pounds: usize) -> Literal
[src]
fn raw_byte_string(s: &str, pounds: usize) -> Literal
[src]
Trait Implementations
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