Behaviour

Behaviour

This module has been 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.

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–2017 Plataformatec
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/elixir/1.4.5/Behaviour.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部