Behaviour
This module has been deprecated.
Instead of defcallback, one can simply use @callback. Instead of defmacrocallback, one can simply use @macrocallback. Instead of __behaviour__(:callbacks), one can simply use behaviour_info(:callbacks).
Summary
Functions
- defcallback(spec)
-
Defines a function callback according to the given type specification
- defmacrocallback(spec)
-
Defines a macro callback according to the given type specification
Functions
defcallback(spec) (macro)
Defines a function callback according to the given type specification.
defmacrocallback(spec) (macro)
Defines a macro callback according to the given type specification.
© 2012 Plataformatec
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/elixir/1.3.4/Behaviour.html