Result<T, E> variantv0.1.0
The outcome of an operation that can fail, kept as a value: what it produced, or the error it threw.
pub variant Result<T, E> {
Success(T),
Failure(E)
}
Owns its payload, so a Result is move-only exactly when its success or error type is.
Type parameters
| Name | Description |
|---|---|
T | what a success holds |
E | what a failure holds |
Cases
| Name | Description |
|---|---|
Success(T) | The operation succeeded and produced this value. |
Failure(E) | The operation failed with this error. |