Function sitewriter::generate[][src]

pub fn generate<T>(inner_writer: T, urls: &[UrlEntry]) -> Result<T> where
    T: Write
Expand description

Generates the sitemap and saves it using the provided writer.

It’s recommended to use [Sitemap::generate_bytes] or [Sitemap::generate_str] if you need a String or a Vec.

Errors

Will return Err if it fails to write to the writer.