pub fn value_of(
nodes: &[NodeRef<'_, Flm>],
anchor: &NodeRef<'_, Flm>,
guard: GuardPolicy,
) -> Result<Arc<NodeTree<Flm>>, CopyError>Expand description
Copies nodes into a synthesized value under the recursion guard policy
guard, as content of the document shown a second time
(ValueContent::Shown): the content that a reference shows of the point
it designates. anchor is a node of the tree that holds nodes (usually
the node that carries the point); nodes must belong to anchor’s tree,
and when nodes is empty, the copy’s root takes its span and parsing
state from anchor. It calls copy_run_into_value.
§Errors
Returns the CopyError that the copy raises: guard refused to descend
further into the run, or the copy could not be built.