Struct windows_tokens::Literal
source · pub struct Literal { /* private fields */ }
Expand description
A literal of some sort
Implementations§
source§impl Literal
impl Literal
pub fn i64_unsuffixed(n: i64) -> Self
pub fn usize_unsuffixed(n: usize) -> Self
pub fn u32_unsuffixed(n: u32) -> Self
pub fn u16_unsuffixed(n: u16) -> Self
pub fn u8_unsuffixed(n: u8) -> Self
pub fn byte_string(s: &[u8]) -> Self
pub fn as_str(&self) -> &str
Trait Implementations§
source§impl ToTokens for Literal
impl ToTokens for Literal
source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Write
self
to the given TokenStream
.