Struct proc_macro2::Literal
[−]
[src]
pub struct Literal(_);
Methods
impl Literal
[src]
fn integer(s: i64) -> Literal
fn u8(n: u8) -> Literal
fn u16(n: u16) -> Literal
fn u32(n: u32) -> Literal
fn u64(n: u64) -> Literal
fn i8(n: i8) -> Literal
fn i16(n: i16) -> Literal
fn i32(n: i32) -> Literal
fn i64(n: i64) -> Literal
fn float(f: f64) -> Literal
fn f64(f: f64) -> Literal
fn f32(f: f32) -> Literal
fn string(string: &str) -> Literal
fn character(ch: char) -> Literal
fn byte_string(s: &[u8]) -> Literal
fn byte_char(b: u8) -> Literal
fn doccomment(s: &str) -> Literal
fn raw_string(s: &str, pounds: usize) -> Literal
fn raw_byte_string(s: &str, pounds: usize) -> Literal
Trait Implementations
impl Clone for Literal
[src]
fn clone(&self) -> Literal
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more