pub fn combine(self, other: MCDegreeOfFreedom) -> MCDegreeOfFreedom {
        use super::MCDegreeOfFreedom as DOF;
        match (self, other) {
            (DOF::Particles, _) | (_, DOF::Particles) => DOF::Particles,
            (DOF::AllMolecules, _) | (_, DOF::AllMolecules) => DOF::AllMolecules,
            (DOF::Molecules(mut all), DOF::Molecules(others)) => {
                all.extend(others);
                DOF::Molecules(all)
            }
        }
    }
/// Combine the degrees of freedom represented by this `MCDegreeOfFreedom`
/// and `other`
Combine the degrees of freedom represented by this `MCDegreeOfFreedom`
and `other`
Combine the degrees of freedom represented by this ` MCDegreeOfFreedom ` and ` other `
pub fn combine(self, other: MCDegreeOfFreedom) -> MCDegreeOfFreedom {
        use super::MCDegreeOfFreedom as DOF;
        match (self, other) {
            (DOF::Particles, _) | (_, DOF::Particles) => DOF::Particles,
            (DOF::AllMolecules, _) | (_, DOF::AllMolecules) => DOF::AllMolecules,
            (DOF::Molecules(mut all), DOF::Molecules(others)) => {
                all.extend(others);
                DOF::Molecules(all)
            }
        }
    }
pub fn combine ( self , other : MCDegreeOfFreedom ) -> MCDegreeOfFreedom { use super :: MCDegreeOfFreedom as DOF ; match ( self , other ) { ( DOF :: Particles , _ ) | ( _ , DOF :: Particles ) => DOF :: Particles , ( DOF :: AllMolecules , _ ) | ( _ , DOF :: AllMolecules ) => DOF :: AllMolecules , ( DOF :: Molecules ( mut all ) , DOF :: Molecules ( others ) ) => { all . extend ( others ) ; DOF :: Molecules ( all ) } } }
Combine the degrees of freedom represented by this `MCDegreeOfFreedom`
and `other`
Combine the degrees of freedom represented by this ` MCDegreeOfFreedom ` and ` other `
self
other
MCDegreeOfFreedom