The wrapped value
Readonly
variantOk
is always Variant.Ok
.
Method variant for mapOr
Method variant for mapOrElse
Method variant for toJSON
Method variant for toString
Method variant for unwrapOr
Method variant for unwrapOrElse
Generated using TypeDoc
An
Ok
instance is the successful variant instance of theResult
type, representing a successful outcome from an operation which may fail. For a full discussion, see the module docs.Typeparam
T The type wrapped in this
Ok
variant ofResult
.Typeparam
E The type which would be wrapped in an
Err
variant ofResult
.