Struct windows_tokens::Literal
source · [−]pub struct Literal { /* private fields */ }
Expand description
A literal of some sort
Implementations
sourceimpl 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
sourceimpl ToTokens for Literal
impl ToTokens for Literal
sourcefn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Write self
to the given TokenStream
.
sourcefn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Convert self
directly into a TokenStream
object. Read more
sourcefn into_token_stream(self) -> TokenStream where
Self: Sized,
fn into_token_stream(self) -> TokenStream where
Self: Sized,
Convert self
directly into a TokenStream
object. Read more
Auto Trait Implementations
impl RefUnwindSafe for Literal
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnwindSafe for Literal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more