pub enum Token {
}Expand description
Public API for Token.
Variants§
LocalIdent(String)
%name (local identifier)
GlobalIdent(String)
@name (global identifier)
IntType(u32)
iNN (integer type, dynamic width)
IntLit(i64)
Integer literal (signed)
UIntLit(u64)
Unsigned integer literal (when value doesn’t fit i64)
FloatLit(f64)
Float literal
StringLit(String)
String literal (inside double quotes)
Kw(Keyword)
Keyword
Equal
=
Comma
,
Colon
:
Star
*
LParen
(
RParen
)
LBracket
[
RBracket
]
LBrace
{
RBrace
}
LAngle
<
RAngle
>
Ellipsis
...
Bang
!
Hash
#
Eof
End of input
Trait Implementations§
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
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