Skip to main content

make

Function make 

Source
pub fn make() -> Tabnas
Expand description

Build a feed parser with the default options.

Building one costs far more than a parse, so an instance is meant to be reused; it parses through &self and is Send + Sync.

let parser = tabnas_feed::make();
let value = parser.parse("<feed xmlns=\"http://www.w3.org/2005/Atom\"><title>Hi</title></feed>")?;
assert_eq!(value.to_json()["title"]["value"], "Hi");