ProtocolEx (protocol_ex v0.4.4)

Matcher protocol control module

Link to this section Summary

Functions

Resolve a protocol into a final ready-to-use-module based on already-compiled names sorted by priority

Implement a protocol based on a matcher specification

Define a protocol behaviour.

Resolve a protocol into a final ready-to-use-module based on implementation names

Link to this section Functions

Link to this function

clean_spec(spec)

Link to this function

consolidate(proto_name, opts \\ [])

Resolve a protocol into a final ready-to-use-module based on already-compiled names sorted by priority

Link to this function

consolidate_all(opts \\ [])

Link to this macro

defimplEx(impl_name, matcher, list1, list2)

(macro)

Implement a protocol based on a matcher specification

Link to this macro

defimpl_ex(impl_name, matcher, opts, bodies)

(macro)
Link to this macro

defprotocolEx(name, opts \\ [], list)

(macro)

Define a protocol behaviour.

Link to this macro

defprotocol_ex(name, opts \\ [], bodies)

(macro)
Link to this function

load_tests_from_impls(callbacks)

Link to this macro

resolveProtocolEx(orig_name, impls, priority_sorted \\ false)

(macro)

Resolve a protocol into a final ready-to-use-module based on implementation names

Link to this macro

resolve_protocol_ex(orig_name, impls, priority_sorted \\ false)

(macro)