pub fn write_module<W>( w: &mut W, module: &Module, cache: &impl ModuleStore, ) -> Result<(), Error>where W: Write,