Skip to main content

element_of

Function element_of 

Source
pub fn element_of<'t>(node: &NodeRef<'t, Flm>) -> &'t Arc<ElementSpec> ⓘ
Expand description

The element of the node node.

Every node of every FLM tree carries its element in its node extension, so this reads a field: it cannot fail, needs no lookup, and works on parsed trees and on trees produced by a rewrite alike.