Quick Reference
Highlights
Section titled “Highlights”- Option: Null-safety with
fromNullable(), LaravelfirstOption()macros, controllerunwrapOrAbort()helpers - Result:
Ok/Errsemantics with full combinators and interop with Option - Either:
Left/Rightbranching for complex multi-path scenarios - Full Rust-aligned API naming for unwrapping and chaining operations
API Overview
Section titled “API Overview”Option API
Section titled “Option API”Create: fromNullable() fromValue() ensure() fromReturn() | Query: isSome() isNone() contains() | Unwrap: unwrap() unwrapOr() unwrapOrAbort() | Transform: map() andThen() filter() | Match: match(someFn, noneFn)
Result API
Section titled “Result API”Create: Ok($v) Err($e) | Query: isOk() isErr() ok() err() | Unwrap: unwrap() unwrapOr() expect() | Transform: map() mapErr() andThen() | Match: match(okFn, errFn)
Either API
Section titled “Either API”Create: left($v) right($v) | Query: isLeft() isRight() left() right() | Unwrap: unwrapLeft() unwrapRight() | Transform: mapLeft() mapRight() bimap() | Match: match(leftFn, rightFn)
See individual cookbook guides for comprehensive API documentation.