Control
assert
Asserts that a given condition is true.attempt
Executes a synchronous function and wraps the outcome in a Result, so callers can handle failure without try/catch.attemptAsync
Executes an asynchronous function and wraps the outcome in a Result.err
Constructs a failure Result.invariant
Asserts that a given condition is true.isErr
Type guard that narrows a Result to Err.isOk
Type guard that narrows a Result to Ok.ok
Constructs a success Result.todo
Marks a code path you intend to implement later and throws if execution reaches it.unimplemented
Marks a code path as intentionally unsupported and throws if execution reaches it.unreachable
Marks a code path as logically impossible and throws if execution reaches it.unwrap
Extract the value from an Ok result, or throw on Err.