pub fn to_writer<W>(&self, writer: W) -> io::Result<()>
    where
        W: Write,
    {
        let mut writer = EventWriter::new_with_config(
            writer,
            EmitterConfig::new().perform_indent(self.pretty_print),
        );
        match self.emit_graphml(&mut writer) {
            Ok(()) => Ok(()),
            Err(XmlError::Io(ioerror)) => Err(ioerror),
            _ => panic!(""),
        }
    }
/// Write the GraphML file to the given writer.
Write the GraphML file to the given writer.
Write the GraphML file to the given writer .
pub fn to_writer<W>(&self, writer: W) -> io::Result<()>
    where
        W: Write,
    {
        let mut writer = EventWriter::new_with_config(
            writer,
            EmitterConfig::new().perform_indent(self.pretty_print),
        );
        match self.emit_graphml(&mut writer) {
            Ok(()) => Ok(()),
            Err(XmlError::Io(ioerror)) => Err(ioerror),
            _ => panic!(""),
        }
    }
pub fn to_writer < W > ( & self , writer : W ) -> io :: Result < ( ) > where W : Write , { let mut writer = EventWriter :: new_with_config ( writer , EmitterConfig :: new ( ) . perform_indent ( self . pretty_print ) , ) ; match self . emit_graphml ( & mut writer ) { Ok ( ( ) ) => Ok ( ( ) ) , Err ( XmlError :: Io ( ioerror ) ) => Err ( ioerror ) , _ => panic ! ( " " ) , } }
Write the GraphML file to the given writer.
Write the GraphML file to the given writer .
&self
writer
W
&self
writer
W