pub enum StarClass {
Show 56 variants
O,
B,
A,
F,
G,
K,
M,
L,
T,
Y,
TTS,
Ae,
Be,
AeBe,
W,
WN,
WNC,
WC,
WO,
CS,
C,
CN,
CJ,
CH,
CHd,
D,
DA,
DAB,
DAO,
DAZ,
DAV,
DB,
DBZ,
DBV,
DO,
DOV,
DQ,
DC,
DCV,
DX,
N,
H,
X,
SupermassiveBlackHole,
ABlueWhiteSuperGiant,
BBlueWhiteSuperGiant,
FWhiteSuperGiant,
GWhiteSuperGiant,
MRedSuperGiant,
MRedGiant,
KOrangeGiant,
RoguePlanet,
Nebula,
StellarRemnantNebula,
MS,
S,
}
Variants§
O
B
A
F
G
K
M
L
T
Y
TTS
Ae
Be
AeBe
W
WN
WNC
WC
WO
CS
C
CN
CJ
CH
CHd
D
DA
DAB
DAO
DAZ
DAV
DB
DBZ
DBV
DO
DOV
DQ
DC
DCV
DX
N
H
X
SupermassiveBlackHole
ABlueWhiteSuperGiant
BBlueWhiteSuperGiant
FWhiteSuperGiant
GWhiteSuperGiant
MRedSuperGiant
MRedGiant
KOrangeGiant
RoguePlanet
Nebula
StellarRemnantNebula
MS
S
Implementations§
Source§impl StarClass
impl StarClass
Sourcepub fn base_value(&self) -> f32
pub fn base_value(&self) -> f32
Returns the base exploration value of the star class. The value is returned as a f32 instead of an u64 like how most credit values are represented as the base value StarClass::SupermassiveBlackHole contains decimal places.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StarClass
impl<'de> Deserialize<'de> for StarClass
Source§fn 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
impl Eq for StarClass
impl StructuralPartialEq for StarClass
Auto Trait Implementations§
impl Freeze for StarClass
impl RefUnwindSafe for StarClass
impl Send for StarClass
impl Sync for StarClass
impl Unpin for StarClass
impl UnwindSafe for StarClass
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