pub fn evaluate<'a, S: Into<String>>(search: S, doc: &'a Document, container: Option<&'a Node>) -> Result<ProduceIter<'a>> {
	Ok(if let Some(node) = container {
		doc.evaluate_from(search, node)?
	} else {
		doc.evaluate(search)?
	})
}
/// A simple [Document] evaluation fn.
///
/// Mainly defined for macros.
///
/// Allows for evaluating from the start of the [Document] or from a [Node] in the Document.
A simple [Document] evaluation fn.
Mainly defined for macros.

Allows for evaluating from the start of the [Document] or from a [Node] in the Document.
A simple [ Document ] evaluation fn . Mainly defined for macros . Allows for evaluating from the start of the [ Document ] or from a [ Node ] in the Document .
pub fn evaluate<'a, S: Into<String>>(search: S, doc: &'a Document, container: Option<&'a Node>) -> Result<ProduceIter<'a>> {
	Ok(if let Some(node) = container {
		doc.evaluate_from(search, node)?
	} else {
		doc.evaluate(search)?
	})
}
pub fn evaluate < ' a , S : Into < String > > ( search : S , doc : & ' a Document , container : Option < & ' a Node > ) -> Result < ProduceIter < ' a > > { Ok ( if let Some ( node ) = container { doc . evaluate_from ( search , node ) ? } else { doc . evaluate ( search ) ? } ) }
A simple [Document] evaluation fn.
A simple [ Document ] evaluation fn .
search
S
doc
&'a Document
container
Option<&'a Node>
search
S
doc
&'a Document
container
Option<&'a Node>