Keywords
Here is a list of all the keywords in Rust:
as
async
await
break
const
continue
crate
dyn
else
enum
extern
false
fn
for
if
impl
in
let
loop
match
mod
move
mut
pub
ref
return
Self
self
static
struct
super
trait
true
type
unsafe
use
where
while
These keywords have special meanings in the Rust programming language and are reserved for specific purposes. It's important to note that some keywords, such as async
, await
, and dyn
, were added in more recent versions of Rust and may not be available in older versions.
It's generally recommended to avoid using these keywords as identifiers for variables, functions, or other entities in your Rust code to prevent conflicts and maintain code clarity.