View Source TypeCheck.Builtin.ImplementsProtocol (TypeCheck v0.13.7)

Checks whether there is a protocol implementation for this value.

Returns a problem tuple with the reason :no_match otherwise.

Summary

Types

(This type is managed by TypeCheck, which allows checking values against the type at runtime.)

t()

(This type is managed by TypeCheck, which allows checking values against the type at runtime.)

Types

@type problem_tuple() :: {t(), :no_match, %{}, any()}

(This type is managed by TypeCheck, which allows checking values against the type at runtime.)

Full definition:

problem_tuple :: {t(), :no_match, %{}, any()}
@type t() :: %TypeCheck.Builtin.ImplementsProtocol{protocol: module()}

(This type is managed by TypeCheck, which allows checking values against the type at runtime.)

Full definition:

t :: %TypeCheck.Builtin.ImplementsProtocol{protocol: module()}