pub enum ParticleKind {
Show 37 variants
Electron,
Positron,
Muon,
Antimuon,
Tau,
Antitau,
ElectronNeutrino,
ElectronAntineutrino,
MuonNeutrino,
MuonAntineutrino,
TauNeutrino,
TauAntineutrino,
UpQuark,
AntiUpQuark,
DownQuark,
AntiDownQuark,
CharmQuark,
AntiCharmQuark,
StrangeQuark,
AntiStrangeQuark,
TopQuark,
AntiTopQuark,
BottomQuark,
AntiBottomQuark,
Photon,
Gluon,
WPlusBoson,
WMinusBoson,
ZBoson,
HiggsBoson,
Proton,
Antiproton,
Neutron,
Antineutron,
PionPlus,
PionMinus,
PionZero,
}Expand description
Identifies a supported particle kind.
The enum is intentionally small and practical rather than exhaustive.
§Examples
use use_particle::ParticleKind;
let electron = ParticleKind::Electron;
assert_eq!(electron, ParticleKind::Electron);Variants§
Electron
The electron.
Positron
The positron.
Muon
The muon.
Antimuon
The antimuon.
Tau
The tau lepton.
Antitau
The antitau.
ElectronNeutrino
The electron neutrino.
ElectronAntineutrino
The electron antineutrino.
MuonNeutrino
The muon neutrino.
MuonAntineutrino
The muon antineutrino.
TauNeutrino
The tau neutrino.
TauAntineutrino
The tau antineutrino.
UpQuark
The up quark.
AntiUpQuark
The anti-up quark.
DownQuark
The down quark.
AntiDownQuark
The anti-down quark.
CharmQuark
The charm quark.
AntiCharmQuark
The anti-charm quark.
StrangeQuark
The strange quark.
AntiStrangeQuark
The anti-strange quark.
TopQuark
The top quark.
AntiTopQuark
The anti-top quark.
BottomQuark
The bottom quark.
AntiBottomQuark
The anti-bottom quark.
Photon
The photon.
Gluon
The gluon.
WPlusBoson
The positively charged W boson.
WMinusBoson
The negatively charged W boson.
ZBoson
The neutral Z boson.
HiggsBoson
The Higgs boson.
Proton
The proton.
Antiproton
The antiproton.
Neutron
The neutron.
Antineutron
The antineutron.
PionPlus
The positively charged pion.
PionMinus
The negatively charged pion.
PionZero
The neutral pion.
Trait Implementations§
Source§impl Clone for ParticleKind
impl Clone for ParticleKind
Source§fn clone(&self) -> ParticleKind
fn clone(&self) -> ParticleKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParticleKind
impl Debug for ParticleKind
Source§impl Hash for ParticleKind
impl Hash for ParticleKind
Source§impl PartialEq for ParticleKind
impl PartialEq for ParticleKind
Source§fn eq(&self, other: &ParticleKind) -> bool
fn eq(&self, other: &ParticleKind) -> bool
self and other values to be equal, and is used by ==.