unwrap property

T get unwrap

Returns result.val if result is Ok. Throws contained result.err if result is Err.

Implementation

T get unwrap {
  if (isErr) {
    throw err!;
  }
  return val!;
}