/// Get all FracBonds for a structure, using cached data if its still valid.
Get all FracBonds for a structure, using cached data if its still valid.
Get all FracBonds for a structure using cached data if its still valid .
fn compute_frac_bonds(&mut self, coords: &Coords, meta: CommonMeta) -> FailResult<&FracBonds> {
            let elements: meta::SiteElements = meta.pick();
            let meta_for_bonds = zip_eq!(elements.iter().cloned(), self.layers.iter().cloned());
            self.interaction_pairs.compute(coords, meta_for_bonds)
        }
fn compute_frac_bonds ( & mut self , coords : & Coords , meta : CommonMeta ) -> FailResult < & FracBonds > { let elements : meta :: SiteElements = meta . pick ( ) ; let meta_for_bonds = zip_eq ! ( elements iter ( ) cloned ( ) self layers iter ( ) cloned ( ) ) ; self . interaction_pairs . compute ( coords , meta_for_bonds ) }
Get all FracBonds for a structure, using cached data if its still valid.
Get all FracBonds for a structure using cached data if its still valid .
&mut self
coords
&Coords
meta
CommonMeta