better-returns
    Preparing search index...

    Function is_ok

    • Checks if a Result is an Ok type. This is a type guard that narrows the type of result to Ok<T>.

      Type Parameters

      • T

        The type of the successful value.

      • E

        The type of the error value.

      Parameters

      • result: Result<T, E>

        The result to check.

      Returns result is Ok<T>

      true if the result is Ok, false otherwise.