Module mediawiki_parser::transformations[][src]

Functions and types for source tree transformations.

Functions

apply_func_clone

Apply a given transformation function to a list of elements, without mutating the original.

apply_func_drain

Apply a given transformation to every item in a list, consuming this list.

recurse_clone

Recursively apply a transformation function func to all children of element root, cloning the input.

recurse_clone_template

Recursively apply a function content_func to the children list of a node, cloning the input.

recurse_inplace

Recursively apply a transformation function func to all children of element root.

recurse_inplace_template

Recursively apply a function content_func to the children list of a node.

Type Definitions

TFunc

Signature of a cloning transformation function

TFuncInplace

Signature of an in-place transformation function

TListResult

Result type for a list of transformed elements.

TResult

Transformation result type