generics¶
Generic types/functions.
-
Option(T)¶
[source] Expresive type for operations that may return nothing.
is_some
: Whether this option contains a value.
-
ResultImpl(T, E)¶
[source] Define a new result type.
- Parameters:
T – The type of values.
E – The type of errors.
-
Result(T, E)¶
[source] Expresive type for operations that may fail.
is_ok
: Whether this result is a value or error.