Function isErr

  • Is the Result an Err?

    Type Parameters

    • T
    • E

    Parameters

    • result: Result<T, E>

      The Result to check.

    Returns result is Err<T, E>

    A type guarded Err.

    Typeparam

    T The type of the item contained in the Result.