Struct accrete::structs::primary_star::PrimaryStar
source · [−]pub struct PrimaryStar {
pub stellar_mass: f64,
pub stellar_luminosity: f64,
pub stellar_surface_temp: f64,
pub stellar_radius_au: f64,
pub spectral_class: SpectralClass,
pub bv_color_index: f64,
pub color: [f64; 3],
pub main_seq_age: f64,
pub ecosphere: (f64, f64),
}
Fields
stellar_mass: f64
stellar_luminosity: f64
stellar_surface_temp: f64
stellar_radius_au: f64
spectral_class: SpectralClass
bv_color_index: f64
color: [f64; 3]
main_seq_age: f64
ecosphere: (f64, f64)
Implementations
sourceimpl PrimaryStar
impl PrimaryStar
Trait Implementations
sourceimpl Clone for PrimaryStar
impl Clone for PrimaryStar
sourcefn clone(&self) -> PrimaryStar
fn clone(&self) -> PrimaryStar
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 PrimaryStar
impl Debug for PrimaryStar
sourceimpl<'de> Deserialize<'de> for PrimaryStar
impl<'de> Deserialize<'de> for PrimaryStar
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 PartialEq<PrimaryStar> for PrimaryStar
impl PartialEq<PrimaryStar> for PrimaryStar
sourcefn eq(&self, other: &PrimaryStar) -> bool
fn eq(&self, other: &PrimaryStar) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PrimaryStar) -> bool
fn ne(&self, other: &PrimaryStar) -> bool
This method tests for !=
.
sourceimpl Serialize for PrimaryStar
impl Serialize for PrimaryStar
impl Copy for PrimaryStar
impl StructuralPartialEq for PrimaryStar
Auto Trait Implementations
impl RefUnwindSafe for PrimaryStar
impl Send for PrimaryStar
impl Sync for PrimaryStar
impl Unpin for PrimaryStar
impl UnwindSafe for PrimaryStar
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