Zippex v1.0.0-rc.1 Zippex.Meta View Source
The metadata of a Zippex
zipper. The Meta
struct contains the following fields:
is_branch
- A function that receives a node and returnstrue
if the node is a branchchildren
- A function that receives a node and returns it's childrenmake_node
- A function that receives a node and a list of children and returns a new node
Link to this section Summary
Functions
Applies the children
function on a node
Applies the is_branch
function on a node
Applies the make_node
function on a node and list of children
Returns a new Meta
struct
Link to this section Types
Link to this type
t()
View Sourcet() :: %Zippex.Meta{ children: children_fun(), is_branch: is_branch_fun(), make_node: make_node_fun() }
Link to this section Functions
Applies the children
function on a node
Applies the is_branch
function on a node
Applies the make_node
function on a node and list of children
Link to this function
new(is_branch, children, make_node)
View Sourcenew(is_branch_fun(), children_fun(), make_node_fun()) :: t()
Returns a new Meta
struct