Struct proc_macro::Literal
[−]
[src]
A literal character ('a'
), string ("hello"
), or number (2.3
).
Methods
impl Literal
[src]
[−]
impl Literal
pub fn integer(n: i128) -> Literal
[src]
[−]
pub fn integer(n: i128) -> Literal
Integer literal
pub fn u8(n: u8) -> Literal
[src]
[−]
pub fn u8(n: u8) -> Literal
Integer literal.
pub fn i8(n: i8) -> Literal
[src]
[−]
pub fn i8(n: i8) -> Literal
Integer literal.
pub fn u16(n: u16) -> Literal
[src]
[−]
pub fn u16(n: u16) -> Literal
Integer literal.
pub fn i16(n: i16) -> Literal
[src]
[−]
pub fn i16(n: i16) -> Literal
Integer literal.
pub fn u32(n: u32) -> Literal
[src]
[−]
pub fn u32(n: u32) -> Literal
Integer literal.
pub fn i32(n: i32) -> Literal
[src]
[−]
pub fn i32(n: i32) -> Literal
Integer literal.
pub fn u64(n: u64) -> Literal
[src]
[−]
pub fn u64(n: u64) -> Literal
Integer literal.
pub fn i64(n: i64) -> Literal
[src]
[−]
pub fn i64(n: i64) -> Literal
Integer literal.
pub fn usize(n: usize) -> Literal
[src]
[−]
pub fn usize(n: usize) -> Literal
Integer literal.
pub fn isize(n: isize) -> Literal
[src]
[−]
pub fn isize(n: isize) -> Literal
Integer literal.
pub fn float(n: f64) -> Literal
[src]
[−]
pub fn float(n: f64) -> Literal
Floating point literal.
pub fn f32(n: f32) -> Literal
[src]
[−]
pub fn f32(n: f32) -> Literal
Floating point literal.
pub fn f64(n: f64) -> Literal
[src]
[−]
pub fn f64(n: f64) -> Literal
Floating point literal.
pub fn string(string: &str) -> Literal
[src]
[−]
pub fn string(string: &str) -> Literal
String literal.
pub fn character(ch: char) -> Literal
[src]
[−]
pub fn character(ch: char) -> Literal
Character literal.
pub fn byte_string(bytes: &[u8]) -> Literal
[src]
[−]
pub fn byte_string(bytes: &[u8]) -> Literal
Byte string literal.