pub fn write_header(&mut self) -> Result<()> {
    // serialize the header
    let header = serde_msgpack::to_vec(&self.header).map_err(Error::MsgPackEnc)?;
    // set the length of the header file
    self.header_file.borrow_mut().set_len(header.len() as u64).map_err(Error::Io)?;
    // seek to the beginning
    self.header_file.borrow_mut().seek(SeekFrom::Start(0)).map_err(Error::Io)?;
    // write the header
    self.header_file.borrow_mut().write_all(&header).map_err(Error::Io)?;

    Ok(())
  }
/// Write the header file to the disk.
///
/// Unlike the data file, the header file is not written to until this is called or the table is
/// dropped. Calling this will force the header file to be written to the disk.
Write the header file to the disk.
Unlike the data file, the header file is not written to until this is called or the table is
dropped. Calling this will force the header file to be written to the disk.
Write the header file to the disk . Unlike the data file the header file is not written to until this is called or the table is dropped . Calling this will force the header file to be written to the disk .
pub fn write_header(&mut self) -> Result<()> {
    // serialize the header
    let header = serde_msgpack::to_vec(&self.header).map_err(Error::MsgPackEnc)?;
    // set the length of the header file
    self.header_file.borrow_mut().set_len(header.len() as u64).map_err(Error::Io)?;
    // seek to the beginning
    self.header_file.borrow_mut().seek(SeekFrom::Start(0)).map_err(Error::Io)?;
    // write the header
    self.header_file.borrow_mut().write_all(&header).map_err(Error::Io)?;
    Ok(())
  }
pub fn write_header ( & mut self ) -> Result < ( ) > { // serialize the header let header = serde_msgpack :: to_vec ( & self . header ) . map_err ( Error :: MsgPackEnc ) ? ; // set the length of the header file self . header_file . borrow_mut ( ) . set_len ( header . len ( ) as u64 ) . map_err ( Error :: Io ) ? ; // seek to the beginning self . header_file . borrow_mut ( ) . seek ( SeekFrom :: Start ( 0 ) ) . map_err ( Error :: Io ) ? ; // write the header self . header_file . borrow_mut ( ) . write_all ( & header ) . map_err ( Error :: Io ) ? ; Ok ( ( ) ) }
Write the header file to the disk.
Write the header file to the disk .
&mut self