pub enum Keyword {
Show 53 variants
As(As),
Async(Async),
Auto(Auto),
Await(Await),
Become(Become),
Box(Box),
Break(Break),
Const(Const),
Continue(Continue),
Crate(Crate),
Default(Default),
Do(Do),
Dyn(Dyn),
Else(Else),
Enum(Enum),
Extern(Extern),
Final(Final),
Fn(Fn),
For(For),
If(If),
Impl(Impl),
In(In),
Let(Let),
Loop(Loop),
Macro(Macro),
MacroRules(MacroRules),
Match(Match),
Mod(Mod),
Move(Move),
Mut(Mut),
Override(Override),
Priv(Priv),
Pub(Pub),
Raw(Raw),
Ref(Ref),
Return(Return),
SelfType(SelfType),
SelfValue(SelfValue),
Static(Static),
Struct(Struct),
Super(Super),
Trait(Trait),
Try(Try),
Type(Type),
Typeof(Typeof),
Union(Union),
Unsafe(Unsafe),
Unsized(Unsized),
Use(Use),
Virtual(Virtual),
Where(Where),
While(While),
Yield(Yield),
}Expand description
A Rust keyword token.
Variants§
As(As)
Async(Async)
Auto(Auto)
Await(Await)
Become(Become)
Box(Box)
Break(Break)
Const(Const)
Continue(Continue)
Crate(Crate)
Default(Default)
Do(Do)
Dyn(Dyn)
Else(Else)
Enum(Enum)
Extern(Extern)
Final(Final)
Fn(Fn)
For(For)
If(If)
Impl(Impl)
In(In)
Let(Let)
Loop(Loop)
Macro(Macro)
MacroRules(MacroRules)
Match(Match)
Mod(Mod)
Move(Move)
Mut(Mut)
Override(Override)
Priv(Priv)
Pub(Pub)
Raw(Raw)
Ref(Ref)
Return(Return)
SelfType(SelfType)
SelfValue(SelfValue)
Static(Static)
Struct(Struct)
Super(Super)
Trait(Trait)
Try(Try)
Type(Type)
Typeof(Typeof)
Union(Union)
Unsafe(Unsafe)
Unsized(Unsized)
Use(Use)
Virtual(Virtual)
Where(Where)
While(While)
Yield(Yield)
Implementations§
Trait Implementations§
impl Copy for Keyword
impl Eq for Keyword
Source§impl From<MacroRules> for Keyword
impl From<MacroRules> for Keyword
Source§fn from(value: MacroRules) -> Self
fn from(value: MacroRules) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Keyword
Auto Trait Implementations§
impl !Send for Keyword
impl !Sync for Keyword
impl Freeze for Keyword
impl RefUnwindSafe 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