Enum rune::ast::generated::Kind [−][src]
The kind of the token.
Variants
En end-of-file marker.
En error marker.
Close(Delimiter)
A close delimiter: )
, }
, or ]
.
Open(Delimiter)
An open delimiter: (
, {
, or [
.
Ident(StringSource)
An identifier.
Label(StringSource)
A label, like 'loop
.
Byte(CopySource<u8>)
A byte literal.
ByteStr(StrSource)
A byte string literal, including escape sequences. Like b"hello\nworld"
.
Char(CopySource<char>)
A characer literal.
Number(NumberSource)
A number literal, like 42
or 3.14
or 0xff
.
Str(StrSource)
A string literal, including escape sequences. Like "hello\nworld"
.
The abstract
keyword.
The alignof
keyword.
&
.
&&
.
&=
.
->
.
The as
keyword.
The async
keyword.
@
.
The await
keyword.
!
.
!=
.
The become
keyword.
The break
keyword.
^
.
^=
.
:
.
::
.
,
.
The const
keyword.
The continue
keyword.
The crate
keyword.
-
.
-=
.
The default
keyword.
/
.
The do
keyword.
$
.
.
.
..
.
..=
.
The else
keyword.
The enum
keyword.
=
.
==
.
The extern
keyword.
The false
keyword.
The final
keyword.
The fn
keyword.
The for
keyword.
>
.
>=
.
>>
.
>>=
.
The if
keyword.
The impl
keyword.
The in
keyword.
The is
keyword.
The let
keyword.
The loop
keyword.
<
.
<=
.
<<
.
<<=
.
The macro
keyword.
The match
keyword.
The mod
keyword.
The move
keyword.
The not
keyword.
The offsetof
keyword.
The override
keyword.
%
.
%=
.
|
.
|=`.
||
.
+
.
+=
.
#
.
The priv
keyword.
The proc
keyword.
The pub
keyword.
The pure
keyword.
?
.
The ref
keyword.
The return
keyword.
=>
.
The select
keyword.
The Self
keyword.
The self
keyword.
;
.
The sizeof
keyword.
/=
.
*
.
*=
.
The static
keyword.
The struct
keyword.
The super
keyword.
~
.
The true
keyword.
The typeof
keyword.
_
.
The unsafe
keyword.
The use
keyword.
The virtual
keyword.
The while
keyword.
The yield
keyword.
Implementations
impl Kind
[src]
pub fn from_keyword(ident: &str) -> Option<Self>
[src]
Try to convert an identifier into a keyword.
Trait Implementations
impl Clone for Kind
[src]
impl Copy for Kind
[src]
impl Debug for Kind
[src]
impl Display for Kind
[src]
impl Eq for Kind
[src]
impl From<Token> for Kind
[src]
impl Hash for Kind
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Kind
[src]
fn cmp(&self, other: &Kind) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Kind> for Kind
[src]
impl PartialOrd<Kind> for Kind
[src]
fn partial_cmp(&self, other: &Kind) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Kind
[src]
impl StructuralPartialEq for Kind
[src]
impl ToTokens for Kind
[src]
fn to_tokens(&self, context: &MacroContext, stream: &mut TokenStream)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CallHasher for T where
T: Hash,
T: Hash,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,