// log when writing stored structures, especially during loops
// (to remove any doubt about the iteration number)
log when writing stored structures, especially during loops
(to remove any doubt about the iteration number)
log when writing stored structures especially during loops ( to remove any doubt about the iteration number )
fn write_stored_structure(
        &self,
        dir: impl AsPath,
        poscar_headline: &str,
        coords: &Coords,
        meta: HList5<
            meta::SiteElements,
            meta::SiteMasses,
            Option<meta::SiteLayers>,
            Option<meta::LayerScMatrices>,
            Option<meta::FracBonds>,
        >,
    ) -> FailResult<()>
    {Ok({
        let path = self.join(dir);
        trace!("Writing '{}'", path.nice());
        StoredStructure {
            title: poscar_headline.into(),
            coords: coords.clone(),
            elements: meta.pick(),
            masses: meta.pick(),
            layers: meta.pick(),
            layer_sc_matrices: meta.pick(),
            frac_bonds: meta.pick(),
        }.save(path)?
    })}
fn write_stored_structure ( & self , dir : impl AsPath , poscar_headline : & str , coords : & Coords , meta : HList5 < meta :: SiteElements , meta :: SiteMasses , Option < meta :: SiteLayers > , Option < meta :: LayerScMatrices > , Option < meta :: FracBonds > , > , ) -> FailResult < ( ) > { Ok ( { let path = self . join ( dir ) ; trace ! ( " " path nice ( ) ) ; StoredStructure { title : poscar_headline . into ( ) , coords : coords . clone ( ) , elements : meta . pick ( ) , masses : meta . pick ( ) , layers : meta . pick ( ) , layer_sc_matrices : meta . pick ( ) , frac_bonds : meta . pick ( ) , } . save ( path ) ? } ) }
log when writing stored structures, especially during loops
(to remove any doubt about the iteration number)
log when writing stored structures especially during loops ( to remove any doubt about the iteration number )
&self
dir
impl AsPath
poscar_headline
&str
coords
&Coords
meta
HList5<
            meta::SiteElements,
            meta::SiteMasses,
            Option<meta::SiteLayers>,
            Option<meta::LayerScMatrices>,
            Option<meta::FracBonds>,
        >