Convert

Trait Convert 

Source
pub trait Convert<V>: Fn(&mut Documents, &Item) -> SpannedResult<V> { }
Expand description

This is the core conversion function that can be used to turn an item that results from an XPath query into something useful in Rust.

Given a Documents and an Item, convert the item to a value of type V

Implementors§

Source§

impl<V, T> Convert<V> for T
where T: Fn(&mut Documents, &Item) -> SpannedResult<V>,