pub const fn charge(kind: ParticleKind) -> ElementaryChargeExpand description
Returns the exact charge for kind.
ยงExamples
use use_particle::{ParticleKind, charge};
assert_eq!(charge(ParticleKind::Electron).thirds, -3);
assert_eq!(charge(ParticleKind::UpQuark).thirds, 2);