Skip to main content

content_value

Function content_value 

Source
pub fn content_value(
    node: &NodeRef<'_, Flm>,
    content: &ContentRef,
    guard: GuardPolicy,
) -> Result<Option<Arc<NodeTree<Flm>>>, CopyError>
Expand description

The synthesized value of the content reference content on node: the nodes ContentRef::nodes designates, copied through value_of; Ok(None) when the reference designates nothing on node.

A ContentRef::Synthesized tree already has the shape of a synthesized value and is returned unchanged, shared rather than copied, so that the tree an element built once serves every reference to its points.

§Errors

Returns the CopyError that value_of raises for the designated nodes.