|
|
|
|
|
by dbaupp
2941 days ago
|
|
The "unwrap" is referring to getting a plain T out of a Foo<T> container: all of those "unwrap" functions return a plain T. One way to look at them is "unwrap", "or" and "or_else" are building blocks that have a common meaning across the different examples: - unwrap: returns a plain T - or: the left-hand side, unless it is a "failure", then use the argument value - or_else: the left-hand side, unless it is a "failure", then use the argument function to create the value |
|