[−][src]Function bloguen::ops::feed_type_header
pub fn feed_type_header<W, E>(
kind: &FeedType
) -> fn(blog_name: &str, language: &LanguageTag, author: &str, link: Option<Cow<'static, str>>, into: &mut W, out_name_err: E) -> Result<Cow<'static, str>, Error> where
W: Write,
E: Into<Cow<'static, str>>,
Get the correct feed output funxion for the specified feed kind.
Returns feed_rss_header()
for FeedType::Rss
,
and feed_atom_header()
for FeedType::Atom
.