Skip to main content

context_node

Function context_node 

Source
pub fn context_node<N: DomNavigator>(
    context: Option<&N>,
) -> Result<N, XPathError>
Expand description

Get the context node from an optional context.

§Arguments

  • context - Optional context node

§Returns

  • Ok(N) - The context node
  • Err(XPathError) - XPDY0002 if context is undefined