Struct accrete::structs::planetesimal::Planetesimal
source · [−]pub struct Planetesimal {Show 44 fields
pub a: f64,
pub b: f64,
pub e: f64,
pub distance_to_primary_star: f64,
pub mass: f64,
pub earth_masses: f64,
pub is_gas_giant: bool,
pub orbit_zone: i32,
pub radius: f64,
pub earth_radii: f64,
pub density: f64,
pub resonant_period: bool,
pub axial_tilt: f64,
pub escape_velocity: f64,
pub surface_accel: f64,
pub surface_grav: f64,
pub rms_velocity: f64,
pub escape_velocity_km_per_sec: f64,
pub orbital_period_days: f64,
pub day_hours: f64,
pub length_of_year: f64,
pub molecule_weight: f64,
pub volatile_gas_inventory: f64,
pub greenhouse_effect: bool,
pub albedo: f64,
pub is_tidally_locked: bool,
pub surface_pressure_bar: f64,
pub surface_temp_kelvin: f64,
pub day_temp_kelvin: f64,
pub night_temp_kelvin: f64,
pub boiling_point_kelvin: f64,
pub hydrosphere: f64,
pub cloud_cover: f64,
pub ice_cover: f64,
pub moons: Vec<Planetesimal>,
pub rings: Vec<Ring>,
pub is_moon: bool,
pub orbit_clearing: f64,
pub is_dwarf_planet: bool,
pub hill_sphere: f64,
pub tectonic_activity: bool,
pub magnetosphere: bool,
pub has_collision: bool,
pub id: String,
}
Fields
a: f64
b: f64
e: f64
distance_to_primary_star: f64
mass: f64
earth_masses: f64
is_gas_giant: bool
orbit_zone: i32
radius: f64
earth_radii: f64
density: f64
resonant_period: bool
axial_tilt: f64
escape_velocity: f64
surface_accel: f64
surface_grav: f64
rms_velocity: f64
escape_velocity_km_per_sec: f64
orbital_period_days: f64
day_hours: f64
length_of_year: f64
molecule_weight: f64
volatile_gas_inventory: f64
greenhouse_effect: bool
albedo: f64
is_tidally_locked: bool
surface_pressure_bar: f64
surface_temp_kelvin: f64
day_temp_kelvin: f64
night_temp_kelvin: f64
boiling_point_kelvin: f64
hydrosphere: f64
cloud_cover: f64
ice_cover: f64
moons: Vec<Planetesimal>
rings: Vec<Ring>
is_moon: bool
orbit_clearing: f64
is_dwarf_planet: bool
hill_sphere: f64
tectonic_activity: bool
magnetosphere: bool
has_collision: bool
id: String
Implementations
sourceimpl Planetesimal
impl Planetesimal
pub fn new(
planetesimal_inner_bound: &f64,
planetesimal_outer_bound: &f64,
rng: &mut dyn RngCore
) -> Self
pub fn derive_planetary_environment(
&mut self,
stellar_luminosity: &f64,
stellar_mass: &f64,
main_seq_age: &f64,
ecosphere: &(f64, f64),
rng: &mut dyn RngCore
)
pub fn random_outer_body(
planetesimal_inner_bound: &f64,
planetesimal_outer_bound: &f64,
rng: &mut dyn RngCore
) -> Self
pub fn random_planet(
stellar_luminosity: f64,
stellar_mass: f64,
a: f64,
e: f64,
mass: f64,
post_accretion_intensity: u32,
rng: &mut dyn RngCore,
events_log: &mut AccreteEvents
) -> Planetesimal
Trait Implementations
sourceimpl Clone for Planetesimal
impl Clone for Planetesimal
sourcefn clone(&self) -> Planetesimal
fn clone(&self) -> Planetesimal
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Planetesimal
impl Debug for Planetesimal
sourceimpl<'de> Deserialize<'de> for Planetesimal
impl<'de> Deserialize<'de> for Planetesimal
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EventSource for Planetesimal
impl EventSource for Planetesimal
fn event(&self, event_type: &str, events_log: &mut AccreteEvents)
sourceimpl PartialEq<Planetesimal> for Planetesimal
impl PartialEq<Planetesimal> for Planetesimal
sourcefn eq(&self, other: &Planetesimal) -> bool
fn eq(&self, other: &Planetesimal) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Planetesimal) -> bool
fn ne(&self, other: &Planetesimal) -> bool
This method tests for !=
.
sourceimpl Serialize for Planetesimal
impl Serialize for Planetesimal
impl StructuralPartialEq for Planetesimal
Auto Trait Implementations
impl RefUnwindSafe for Planetesimal
impl Send for Planetesimal
impl Sync for Planetesimal
impl Unpin for Planetesimal
impl UnwindSafe for Planetesimal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more