pub fn save<T, O>(&mut self, writer: &mut T, object: &O) -> Result<(), Error>
    where
        T: Write,
        O: Versionize,
    {
        let mut crc_writer = CRC64Writer::new(writer);
        self.save_without_crc(&mut crc_writer, object)?;

        let checksum = crc_writer.checksum();
        checksum
            .serialize(&mut crc_writer, &Self::format_version_map(), 0)
            .map_err(Error::Versionize)?;
        Ok(())
    }
/// Saves a snapshot and include a CRC64 checksum.
Saves a snapshot and include a CRC64 checksum.
Saves a snapshot and include a CRC64 checksum .
pub fn save<T, O>(&mut self, writer: &mut T, object: &O) -> Result<(), Error>
    where
        T: Write,
        O: Versionize,
    {
        let mut crc_writer = CRC64Writer::new(writer);
        self.save_without_crc(&mut crc_writer, object)?;
        let checksum = crc_writer.checksum();
        checksum
            .serialize(&mut crc_writer, &Self::format_version_map(), 0)
            .map_err(Error::Versionize)?;
        Ok(())
    }
pub fn save < T , O > ( & mut self , writer : & mut T , object : & O ) -> Result < ( ) , Error > where T : Write , O : Versionize , { let mut crc_writer = CRC64Writer :: new ( writer ) ; self . save_without_crc ( & mut crc_writer , object ) ? ; let checksum = crc_writer . checksum ( ) ; checksum . serialize ( & mut crc_writer , & Self :: format_version_map ( ) , 0 ) . map_err ( Error :: Versionize ) ? ; Ok ( ( ) ) }
Saves a snapshot and include a CRC64 checksum.
Saves a snapshot and include a CRC64 checksum .
&mut self
writer
&mut T
object
&O
&mut self
writer
&mut T
object
&O