Custom Types
Rust custom data types are formed mainly through the two keywords:
struct
: define a structureenum
: define an enumeration
Constants can also be created via the const
and static
keywords.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Rust custom data types are formed mainly through the two keywords:
struct
: define a structureenum
: define an enumerationConstants can also be created via the const
and static
keywords.