pub enum KeywordKind {
Declaration,
Statement,
Modifier,
Type,
Value,
}Expand description
The category of a reserved word.
Variants§
Declaration
Words that start declarations (label, fn, save, and so on). Cannot be written inside a label.
Statement
Words that start statements (jump, if, return, and so on).
Modifier
Words that appear in the middle of syntax (var, in). Never at the start of a statement.
Type
Type names.
Value
Words that make values (true, false, Some, None).
Trait Implementations§
Source§impl Clone for KeywordKind
impl Clone for KeywordKind
impl Copy for KeywordKind
Source§impl Debug for KeywordKind
impl Debug for KeywordKind
impl Eq for KeywordKind
Source§impl PartialEq for KeywordKind
impl PartialEq for KeywordKind
impl StructuralPartialEq for KeywordKind
Auto Trait Implementations§
impl Forget for KeywordKind
impl Freeze for KeywordKind
impl Move for KeywordKind
impl RefUnwindSafe for KeywordKind
impl Send for KeywordKind
impl Sync for KeywordKind
impl Unpin for KeywordKind
impl UnsafeUnpin for KeywordKind
impl UnwindSafe for KeywordKind
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