pub struct StellarCore {
pub temperature_k: f64,
pub density_kg_m3: f64,
pub hydrogen_fraction: f64,
pub helium_fraction: f64,
pub metal_fraction: f64,
pub mass_solar: f64,
}Fields§
§temperature_k: f64§density_kg_m3: f64§hydrogen_fraction: f64§helium_fraction: f64§metal_fraction: f64§mass_solar: f64Implementations§
Source§impl StellarCore
impl StellarCore
pub fn new( mass_solar: f64, temperature_k: f64, density_kg_m3: f64, ) -> StellarCore
pub fn luminosity_solar(&self) -> f64
pub fn main_sequence_lifetime_years(&self) -> f64
pub fn active_processes(&self) -> Vec<ProcessType>
pub fn dominant_process(&self) -> Option<ProcessType>
pub fn evolve_step(&mut self, dt_years: f64)
Auto Trait Implementations§
impl Freeze for StellarCore
impl RefUnwindSafe for StellarCore
impl Send for StellarCore
impl Sync for StellarCore
impl Unpin for StellarCore
impl UnsafeUnpin for StellarCore
impl UnwindSafe for StellarCore
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