Mine v0.2.1 Mine View Source

Link to this section Summary

Functions

Sets the @mine_default_view attribute for mod.

Verifies that the declared default key corresponds to an existing view.

Checks if mod has declared the functions required to be a struct at compile time.

Link to this section Types

Link to this section Functions

Link to this function

__set_default_view__(mod, name)

View Source
__set_default_view__(module(), key()) :: :ok

Sets the @mine_default_view attribute for mod.

Link to this macro

add_field(key, value)

View Source (macro)
Link to this macro

alias_field(key, opts)

View Source (macro)
Link to this macro

default_view(name)

View Source (macro)
Link to this macro

defview(name \\ :default, list)

View Source (macro)
Link to this function

finalize_view(map, byte_code)

View Source

Verifies that the declared default key corresponds to an existing view.

Raises if this condition fails.

Link to this function

get_view!(mod, view_name, operation_name \\ nil)

View Source
Link to this function

has_struct?(mod)

View Source
has_struct?(module()) :: boolean()

Checks if mod has declared the functions required to be a struct at compile time.

Link to this macro

ignore_field(key)

View Source (macro)
Link to this function

valid_key?(val)

View Source
valid_key?(any()) :: boolean()