sitemap_iter

Struct Document

source
pub struct Document<'a> { /* private fields */ }

Implementations§

source§

impl<'a> Document<'a>

source

pub fn parse(xml_document: &'a str) -> Result<Self, Error>

Takes xml_document and parses it according to the spec.

source

pub fn iterate( &'a self, ) -> Result<impl Iterator<Item = UrlEntry<'a>> + DoubleEndedIterator + Clone + Debug + 'a, Error>

Returns an iterator of UrlEntry.

Uses log for logging errors in the XML.

Auto Trait Implementations§

§

impl<'a> Freeze for Document<'a>