1
2
3
4
5
6
7
8
9
use std::cmp::PartialEq;

use super::element::Element;

impl PartialEq for Element {
    fn eq(&self, other: &Self) -> bool {
        self.atomic_mass() == other.atomic_mass() && self.atomic_number() == other.atomic_number()
    }
}