Behaviour

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

Macros

defcallback(spec)

Defines a function callback according to the given type specification

defmacrocallback(spec)

Defines a macro callback according to the given type specification

Macros

defcallback(spec)

Defines a function callback according to the given type specification.

defmacrocallback(spec)

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.3.4/Behaviour.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部