blob: 2483eff16114858f4fbbe8ca08c780639b614f29 [file] [log] [blame] [view] [edit]
Sometimes it's desirable to catch the failure of some parts of a program
instead of calling `fail!`, this can be accomplished using the `Option` enum.
The `Option<T>` enum has two variants:
* `None`, to indicate failure or lack of value, and
* `Some(value)`, a tuple struct that wraps a `value` with type `T`.
{option.play}