pub struct ParticleProfile {
pub name: String,
pub class: ParticleClass,
pub mass_kg: f64,
pub charge_e: f64,
pub spin: f64,
pub lifetime_s: f64,
pub usri: String,
}Expand description
A particle profile for microverse simulations (OCS §12.4).
Fields§
§name: String§class: ParticleClass§mass_kg: f64§charge_e: f64§spin: f64§lifetime_s: f64§usri: StringImplementations§
Source§impl ParticleProfile
impl ParticleProfile
Sourcepub fn higgs_boson() -> Self
pub fn higgs_boson() -> Self
Higgs boson (OCS §12.4).
Sourcepub fn compton_wavelength(&self) -> f64
pub fn compton_wavelength(&self) -> f64
Compute the Compton wavelength of a particle (OCS §12.4). λ = h / (m * c) where h = 2πℏ
Sourcepub fn rest_energy_j(&self) -> f64
pub fn rest_energy_j(&self) -> f64
Compute the rest energy in Joules (OCS §12.4). E = m * c²
Sourcepub fn de_broglie_wavelength(&self, velocity_m_s: f64) -> f64
pub fn de_broglie_wavelength(&self, velocity_m_s: f64) -> f64
Compute the de Broglie wavelength at a given velocity (OCS §12.4). λ = ℏ / (m * v)
Trait Implementations§
Source§impl Clone for ParticleProfile
impl Clone for ParticleProfile
Source§impl Debug for ParticleProfile
impl Debug for ParticleProfile
Source§impl PartialEq for ParticleProfile
impl PartialEq for ParticleProfile
impl StructuralPartialEq for ParticleProfile
Auto Trait Implementations§
impl Freeze for ParticleProfile
impl RefUnwindSafe for ParticleProfile
impl Send for ParticleProfile
impl Sync for ParticleProfile
impl Unpin for ParticleProfile
impl UnsafeUnpin for ParticleProfile
impl UnwindSafe for ParticleProfile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more