pub fn composition(&self) -> Composition {
        let mut composition = Composition::new();
        for &kind in self.particles().kind {
            composition.add_particle(kind);
        }
        for molecule in self.molecules() {
            composition.add_molecule(molecule.hash());
        }
        return composition;
    }
/// Get the composition in particles and molecules of the configuration
Get the composition in particles and molecules of the configuration
Get the composition in particles and molecules of the configuration
pub fn composition(&self) -> Composition {
        let mut composition = Composition::new();
        for &kind in self.particles().kind {
            composition.add_particle(kind);
        }
        for molecule in self.molecules() {
            composition.add_molecule(molecule.hash());
        }
        return composition;
    }
pub fn composition ( & self ) -> Composition { let mut composition = Composition :: new ( ) ; for & kind in self . particles ( ) . kind { composition . add_particle ( kind ) ; } for molecule in self . molecules ( ) { composition . add_molecule ( molecule . hash ( ) ) ; } return composition ; }
Get the composition in particles and molecules of the configuration
Get the composition in particles and molecules of the configuration
&self