View Source Behaviour (Elixir v1.10.2)
This module is deprecated. Use @callback and @macrocallback attributes instead.
Mechanism for handling behaviours.
This module is deprecated. Instead of defcallback/1
and
defmacrocallback/1
, the @callback
and @macrocallback
module attributes can be used (respectively). See the
documentation for Module
for more information on these
attributes.
Instead of MyModule.__behaviour__(:callbacks)
,
MyModule.behaviour_info(:callbacks)
can be used.
Link to this section Summary
Functions
Defines a function callback according to the given type specification.
Defines a macro callback according to the given type specification.
Link to this section Functions
Defines a function callback according to the given type specification.
Defines a macro callback according to the given type specification.