v0.4.0

Result<T, E> variantv0.1.0

Source
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

NameDescription
Twhat a success holds
Ewhat a failure holds

Cases

NameDescription
Success(T)The operation succeeded and produced this value.
Failure(E)The operation failed with this error.