ok

Constructs a new Result with the status set to okay and with the provided value.

If you don't specify the type of the error value for this then it is assumed to be the same as the okay type.

@safe @nogc static
Result!(OkayType, ErrorType)
ok
(
OkayType
ErrorType = OkayType
)
(
OkayType okayVal
)

Parameters

okayVal OkayType

the okay value

Return Value

Type: Result!(OkayType, ErrorType)

a Result

Meta