Sign in
rust
/
rust-by-example
/
b656f3c9f994f2bd9899d0df4e67f24ac2f37998
/
.
/
src
/
custom_types.md
blob: 2a58c4a3adb2fec5b0babcaa055976088b01e395 [
file
] [
view
]
# Custom Types
Rust
custom data types are formed mainly through the two keywords
:
*
`struct`
:
define a structure
*
`enum`
:
define an enumeration
Constants
can also be created via the
`const`
and
`static`
keywords
.