Skip to main content

element_value

Function element_value 

Source
pub fn element_value<'t, V: Any + Send + Sync>(
    node: &NodeRef<'t, Flm>,
) -> Option<&'t V>
Expand description

The data of the element of the node node, as a V.

Returns None when the element carries no data, or when its data is not of type V. Written element_value::<HeadingElement>(node); the same read as ElementSpec::value_as on element_of(node).