pub enum Keyword {
Show 39 variants
True,
False,
Nil,
Nan,
Inf,
Underscore,
Global,
In,
NotIn,
Is,
And,
Or,
Not,
Type,
If,
Else,
Match,
Case,
For,
While,
Loop,
Break,
Continue,
Return,
Fn,
Op,
Let,
Const,
Mut,
Where,
Mod,
Pub,
Use,
Effect,
Try,
Handle,
Finally,
Perform,
Resume,
}Variants§
True
False
Nil
Nan
Inf
Underscore
Global
In
NotIn
Is
And
Or
Not
Type
If
Else
Match
Case
For
While
Loop
Break
Continue
Return
Fn
Op
Let
Const
Mut
Where
Mod
Pub
Use
Effect
Try
Handle
Finally
Perform
Resume
Implementations§
Source§impl Keyword
impl Keyword
Sourcepub fn is_control(&self) -> bool
pub fn is_control(&self) -> bool
Returns true if the keyword is a control flow keyword.
Sourcepub fn is_constant(&self) -> bool
pub fn is_constant(&self) -> bool
Returns true if the keyword is a constant.
Sourcepub fn is_reserved(&self) -> bool
pub fn is_reserved(&self) -> bool
Returns true if the keyword is reserved and cannot be used as an identifier.
Sourcepub fn is_numeric(&self) -> bool
pub fn is_numeric(&self) -> bool
Returns true if the keyword is numeric.
Trait Implementations§
impl Copy for Keyword
Source§impl EnumProperty for Keyword
impl EnumProperty for Keyword
impl Eq for Keyword
impl StructuralPartialEq for Keyword
Auto Trait Implementations§
impl Freeze for Keyword
impl RefUnwindSafe for Keyword
impl Send for Keyword
impl Sync for Keyword
impl Unpin for Keyword
impl UnsafeUnpin for Keyword
impl UnwindSafe for Keyword
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