better-returns
    Preparing search index...

    Function is_err

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

      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 Err<E>

      true if the result is Err, false otherwise.