INNER CODE UNIT · Rust
write
informationsea/transanno · liftover-rs/src/bedparse/mod.rs:74
pub fn write<W: Write>(&self, writer: &mut W) -> io::Result<()> {
writer.write_all(self.chrom)?;
writer.write_all(b"\t")?;
writer.write_all(self.start.to_string().as_bytes())?;
writer.write_all(b"\t")?;
writer.write_all(self.end.to_string().as_bytes())?;
if let Some(name) = self.name {
writer.write_all(b"\t")?;
writer.write_all(name)?;
if let Some(score) = self.score {
writer.write_all(b"\t")?;
writer.write_all(score)?;
if let Some(strand) = self.strand {
writer.write_all(b"\t")?;
writer.write_all(strand)?;
if let Some(others) = self.others {
writer.write_all(b"\t")?;
writer.write_all(others)?;