ProtocolEx (protocol_ex v0.5.1)

Copy Markdown

Matcher protocol control module

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

Functions

clean_spec(spec)

consolidate(proto_name, opts \\ [])

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

consolidate_all(opts \\ [])

defimpl_ex(impl_name, matcher, opts, bodies)

(macro)

defimplEx(impl_name, matcher, list1, list2)

(macro)

Implement a protocol based on a matcher specification

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

(macro)

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

(macro)

Define a protocol behaviour.

load_tests_from_impls(callbacks)

resolve_protocol_ex(orig_name, impls, priority_sorted \\ false)

(macro)

resolveProtocolEx(orig_name, impls, priority_sorted \\ false)

(macro)

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