pub fn write(file:&mut dyn Write, chunks:Vec<Chunk>) -> Result<(), ::std::io::Error> {
	file.write_all(&MAGIC)?;
	for chunk in chunks {
		chunk.write(file)?;
	}
	Ok(())
}
/// Writes a sequence of Chunks to form a png file
Writes a sequence of Chunks to form a png file
Writes a sequence of Chunks to form a png file
pub fn write(file:&mut dyn Write, chunks:Vec<Chunk>) -> Result<(), ::std::io::Error> {
	file.write_all(&MAGIC)?;
	for chunk in chunks {
		chunk.write(file)?;
	}
	Ok(())
}
pub fn write ( file : & mut dyn Write , chunks : Vec < Chunk > ) -> Result < ( ) , :: std :: io :: Error > { file . write_all ( & MAGIC ) ? ; for chunk in chunks { chunk . write ( file ) ? ; } Ok ( ( ) ) }
Writes a sequence of Chunks to form a png file
Writes a sequence of Chunks to form a png file
file
&mut dyn Write
chunks
Vec<Chunk>