errΒΆ Error handling with the Result type. Classes Result() Represents a union of either an ok(T) or an err(E) value. Functions err(err) Constructs an err result value. ok(val) Constructs an ok result value.