pub fn write_to<W: Write>(&self, writer: W) -> Result<W, Error> {
        let mut writer = Writer::new(writer);
        self.to_xml(&mut writer)?;
        Ok(writer.into_inner())
    }
/// Attempt to write this Atom feed to a writer.
///
/// # Examples
///
/// ```no_run
/// use std::io::BufReader;
/// use std::fs::File;
/// use atom_syndication::Feed;
///
/// let file = File::open("example.xml").unwrap();
/// let feed = Feed::read_from(BufReader::new(file)).unwrap();
/// let out = File::create("out.xml").unwrap();
/// feed.write_to(out).unwrap();
/// ```
Attempt to write this Atom feed to a writer.
Attempt to write this Atom feed to a writer .
pub fn write_to<W: Write>(&self, writer: W) -> Result<W, Error> {
        let mut writer = Writer::new(writer);
        self.to_xml(&mut writer)?;
        Ok(writer.into_inner())
    }
pub fn write_to < W : Write > ( & self , writer : W ) -> Result < W , Error > { let mut writer = Writer :: new ( writer ) ; self . to_xml ( & mut writer ) ? ; Ok ( writer . into_inner ( ) ) }
Attempt to write this Atom feed to a writer.
Attempt to write this Atom feed to a writer .
&self
writer
W
&self
writer
W
examples
```no_run
use std::io::BufReader;
use std::fs::File;
use atom_syndication::Feed.

let file = File::open("example.xml").unwrap();
let feed = Feed::read_from(BufReader::new(file)).unwrap();
let out = File::create("out.xml").unwrap();
feed.write_to(out).unwrap();
```
` ` ` no_run use std :: io :: BufReader ; use std :: fs :: File ; use atom_syndication :: Feed . let file = File :: open ( " example . xml " ) . unwrap () ; let feed = Feed :: read_from ( BufReader :: new ( file )) . unwrap () ; let out = File :: create ( " out . xml " ) . unwrap () ; feed . write_to ( out ) . unwrap () ; ` ` `