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.
Content-Length: 30412 | pFad | https://doc.rust-lang.org/std/string/../../../../../std/../rust-by-example/custom_types.html
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.
Fetched URL: https://doc.rust-lang.org/std/string/../../../../../std/../rust-by-example/custom_types.html
Alternative Proxies: