Module rust_examples::adts [−][src]
Expand description
This module contains an example of Algebraic Data Type (ADT) and the concept of pattern matching which is commonly used to work with ADTs.
Structs
This test demonstrates that in Rust all self-referential structures must have size known at
compile time. This means that such structures cannot own data of type Self but rather have
to indirectly refence these via some sort of a pointer.
Enums
An enum representing an Binary Tree Algebraic Data Type (ADT)
