fn write<W: Write>(&self, writer: &mut W) -> io::Result<()> {
        let mut buf = Vec::new();
        self.write_raw(&mut buf)
            .expect("writing into a Vec<u8> failed");

        writer.write_u32::<LittleEndian>(self.tag_id() as u32)?;
        writer.write_u32::<LittleEndian>(buf.len() as u32)?;
        writer.write_all(&buf)?;
        Ok(())
    }
/// Writes this tag, along with tag ID and length, into a GBL file stream.
Writes this tag, along with tag ID and length, into a GBL file stream.
Writes this tag along with tag ID and length into a GBL file stream .
fn write<W: Write>(&self, writer: &mut W) -> io::Result<()> {
        let mut buf = Vec::new();
        self.write_raw(&mut buf)
            .expect("writing into a Vec<u8> failed");
        writer.write_u32::<LittleEndian>(self.tag_id() as u32)?;
        writer.write_u32::<LittleEndian>(buf.len() as u32)?;
        writer.write_all(&buf)?;
        Ok(())
    }
fn write < W : Write > ( & self , writer : & mut W ) -> io :: Result < ( ) > { let mut buf = Vec :: new ( ) ; self . write_raw ( & mut buf ) . expect ( " " ) ; writer . write_u32 :: < LittleEndian > ( self . tag_id ( ) as u32 ) ? ; writer . write_u32 :: < LittleEndian > ( buf . len ( ) as u32 ) ? ; writer . write_all ( & buf ) ? ; Ok ( ( ) ) }
Writes this tag, along with tag ID and length, into a GBL file stream.
Writes this tag along with tag ID and length into a GBL file stream .
&self
writer
&mut W