pub struct LiteralToken {
pub kind: LiteralKind,
/* private fields */
}Expand description
A literal spelling together with its lexical category and source span.
Fields§
§kind: LiteralKindThe literal’s lexical category.
Implementations§
Source§impl LiteralToken
impl LiteralToken
Trait Implementations§
Source§impl Clone for LiteralToken
impl Clone for LiteralToken
Source§fn clone(&self) -> LiteralToken
fn clone(&self) -> LiteralToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LiteralToken
impl Debug for LiteralToken
Source§impl Display for LiteralToken
impl Display for LiteralToken
impl Eq for LiteralToken
Source§impl Lex for LiteralToken
impl Lex for LiteralToken
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
Source§impl Parse for LiteralToken
impl Parse for LiteralToken
Source§fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
Consumes this value from
input. Read moreSource§impl PartialEq for LiteralToken
impl PartialEq for LiteralToken
Source§impl Spanned for LiteralToken
impl Spanned for LiteralToken
impl StructuralPartialEq for LiteralToken
Auto Trait Implementations§
impl Freeze for LiteralToken
impl RefUnwindSafe for LiteralToken
impl Send for LiteralToken
impl Sync for LiteralToken
impl Unpin for LiteralToken
impl UnsafeUnpin for LiteralToken
impl UnwindSafe for LiteralToken
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