Enum kailua_syntax::lex::Keyword
[−]
[src]
pub enum Keyword { And, Break, Do, Else, Elseif, End, False, For, Function, Goto, If, In, Local, Nil, Not, Or, Repeat, Return, Then, True, Until, While, Assume, Class, Const, Global, Map, Method, Module, Once, Open, Static, Type, Var, Vector, }
A keyword.
This includes Kailua-specific keywords, which are only generated in the meta block (marked as [M] below). Some of them are also only generated after a particular Lua version (marked as [5.x+] below).
Variants
And
and
.
Break
break
.
Do
do
.
Else
else
.
Elseif
elseif
.
End
end
.
False
false
.
For
for
.
Function
function
.
Goto
goto
. [5.2+; a normal identifier in Lua 5.1]
If
if
.
In
in
.
Local
local
.
Nil
nil
.
Not
not
.
Or
or
.
Repeat
repeat
.
Return
return
.
Then
then
.
True
true
.
Until
until
.
While
while
.
Assume
assume
. [M]
Class
class
. [M]
Const
const
. [M]
Global
global
. [M]
Map
map
. [M]
Method
method
. [M]
Module
module
. [M]
Once
once
. [M]
Open
open
. [M]
Static
static
. [M]
Type
type
. [M]
Var
var
. [M]
Vector
vector
. [M]
Methods
impl Keyword
[src]
Trait Implementations
impl Copy for Keyword
[src]
impl Clone for Keyword
[src]
fn clone(&self) -> Keyword
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Keyword
[src]
impl PartialEq for Keyword
[src]
fn eq(&self, __arg_0: &Keyword) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.