pub fn write_to<W: Write>(&self, mut writer: W) -> Result<(), io::Error> {
        if let CfiCacheInner::Versioned(version, _) = self.inner {
            write_preamble(&mut writer, version)?;
        }
        io::copy(&mut self.as_slice(), &mut writer)?;
        Ok(())
    }
/// Writes the cache to the given writer.
Writes the cache to the given writer.
Writes the cache to the given writer .
pub fn write_to<W: Write>(&self, mut writer: W) -> Result<(), io::Error> {
        if let CfiCacheInner::Versioned(version, _) = self.inner {
            write_preamble(&mut writer, version)?;
        }
        io::copy(&mut self.as_slice(), &mut writer)?;
        Ok(())
    }
pub fn write_to < W : Write > ( & self , mut writer : W ) -> Result < ( ) , io :: Error > { if let CfiCacheInner :: Versioned ( version , _ ) = self . inner { write_preamble ( & mut writer , version ) ? ; } io :: copy ( & mut self . as_slice ( ) , & mut writer ) ? ; Ok ( ( ) ) }
Writes the cache to the given writer.
Writes the cache to the given writer .
&self
writer
W
&self
writer
W