pub struct LitChar { /* private fields */ }
Expand description
A character literal delimited by single quotes.
See also SingleQuotes
.
Implementations§
Trait Implementations§
Source§impl Ord for LitChar
impl Ord for LitChar
Source§impl PartialOrd for LitChar
impl PartialOrd for LitChar
Source§impl ToTokens for LitChar
impl ToTokens for LitChar
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Append
self
to the given TokenStream
.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Convert
self
directly into a TokenStream
.Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Convert
self
directly into a TokenStream
.Source§impl ToTokens for LitChar
Available on crate feature proc-macro2
only.
impl ToTokens for LitChar
Available on crate feature
proc-macro2
only.Source§fn to_tokens(&self, tokens: &mut TokenStream2)
fn to_tokens(&self, tokens: &mut TokenStream2)
Source§fn to_token_stream(&self) -> TokenStream2
fn to_token_stream(&self) -> TokenStream2
Source§fn into_token_stream(self) -> TokenStream2
fn into_token_stream(self) -> TokenStream2
impl Eq for LitChar
Auto Trait Implementations§
impl Freeze for LitChar
impl RefUnwindSafe for LitChar
impl Send for LitChar
impl Sync for LitChar
impl Unpin for LitChar
impl UnwindSafe for LitChar
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more