Module mediawiki_parser::transformations
source · Expand description
Functions and types for source tree transformations.
Functions
Apply a given transformation function to a list of elements, without mutating the original.
Apply a given transformation to every item in a list, consuming this list.
Recursively apply a transformation function
func
to all children of element root
, cloning the input.Recursively apply a function
content_func
to the children list of a node, cloning the input.Recursively apply a transformation function
func
to all children of element root
.Recursively apply a function
content_func
to the children list of a node.Type Definitions
Signature of a cloning transformation function
Signature of an in-place transformation function
Result type for a list of transformed elements.
Transformation result type