Enum Nebula

Source
pub enum Nebula {
Show 189 variants AquilaDarkRegion, B133, B352, B92, BarnardsLoop, BlinkingNebula, BlueFlashNebula, BluePlanetaryNebula, BlueSnowballNebula, BowTieNebula, BoxNebula, BubbleNebula, BugNebula, ButterflyNebula, CaliforniaNebula, CatsEyeNebula, CatsPawNebula, CaveNebula, CepheusDarkRegion, Chamaeleon, CoalsackDarkRegion, CocoonNebula, ConeNebula, CoronaAustrDarkRegion, CrabNebula, CrescentNebula, DumbbellNebula, EagleNebula, EightBurstNebula, ElephantsTrunkNebula, EtaCarinaNebula, FetusNebula, FineRingNebula, FlameNebula, FlamingStarNebula, G2DustCloud, GhostOfJupiter, HeartNebula, HelixNebula, HindNebula, HorseheadDarkRegion, HorseheadNebula, HubblesVariable, Ic1287, Ic1297, Ic2149, Ic2165, Ic2448, Ic2501, Ic2553, Ic2621, Ic289, Ic4191, Ic4604, Ic4634, Ic4663, Ic4673, Ic4699, Ic4776, Ic4846, Ic4997, Ic5117, Ic5148, Ic5217, IrisNebula, JellyfishNebula, LagoonNebula, Lbn623, LemonSliceNebula, LittleDumbbellNebula, LittleGemNebula, LittleGhostNebula, LupusDarkRegion, LupusDarkRegionB, Messier78, MonkeyHeadNebula, MuscaDarkRegion, Ngc1333, Ngc1360, Ngc1491, Ngc1501, Ngc1514, Ngc1535, Ngc1931, Ngc1999, Ngc2022, Ngc2371, Ngc2392, Ngc2438, Ngc2440, Ngc2452, Ngc2792, Ngc281, Ngc2818, Ngc2867, Ngc2899, Ngc3195, Ngc3199, Ngc3211, Ngc3699, Ngc4361, Ngc5307, Ngc5315, Ngc5367, Ngc5873, Ngc5882, Ngc5979, Ngc6058, Ngc6153, Ngc6188, Ngc6210, Ngc6326, Ngc6337, Ngc6357, Ngc6445, Ngc6563, Ngc6565, Ngc6567, Ngc6572, Ngc6629, Ngc6644, Ngc6751, Ngc6781, Ngc6790, Ngc6803, Ngc6804, Ngc6820, Ngc6842, Ngc6852, Ngc6879, Ngc6884, Ngc6886, Ngc6891, Ngc7026, Ngc7027, Ngc7048, Ngc7354, Ngc7538, Ngc7822, NorthAmericaNebula, OmegaNebula, OphiuchusDarkRegion, OphiuchusDarkRegionB, OphiuchusDarkRegionC, OrionDarkRegion, OrionNebula, OwlNebula, ParrotsHead, PelicanNebula, PencilNebula, PerseusDarkRegion, PhantomStreak, PipeBowl, PipeStem, Pleiades, PuppisDarkRegion, PuppisDarkRegionB, RCra, RedSpiderNebula, RetinaNebula, RhoOphiuchi, RingNebula, RosetteNebula, RunningManNebula, SadrRegion, SaturnNebula, ScorpiusDarkRegion, ScutumDarkRegion, SeagullNebula, SkullAndCrossbonesNebula, SkullNebula, Snake, SoulNebula, SpiralPlanetaryNebula, SpirographNebula, StatueOfLibertyNebula, StruvesLostNebula, TaurusDarkRegion, ThorsHelmet, TrifidNebula, TrifidOfTheNorth, VeilNebulaEast, VeilNebulaWest, VelaDarkRegion, VulpeculaDarkRegion, WhiteEyedPea, WitchHeadNebula, FlyooGroaSOZE0, EollsGraaeAAAH31,
}

Variants§

§

AquilaDarkRegion

§

B133

§

B352

§

B92

§

BarnardsLoop

§

BlinkingNebula

§

BlueFlashNebula

§

BluePlanetaryNebula

§

BlueSnowballNebula

§

BowTieNebula

§

BoxNebula

§

BubbleNebula

§

BugNebula

§

ButterflyNebula

§

CaliforniaNebula

§

CatsEyeNebula

§

CatsPawNebula

§

CaveNebula

§

CepheusDarkRegion

§

Chamaeleon

§

CoalsackDarkRegion

§

CocoonNebula

§

ConeNebula

§

CoronaAustrDarkRegion

§

CrabNebula

§

CrescentNebula

§

DumbbellNebula

§

EagleNebula

§

EightBurstNebula

§

ElephantsTrunkNebula

§

EtaCarinaNebula

§

FetusNebula

§

FineRingNebula

§

FlameNebula

§

FlamingStarNebula

§

G2DustCloud

§

GhostOfJupiter

§

HeartNebula

§

HelixNebula

§

HindNebula

§

HorseheadDarkRegion

§

HorseheadNebula

§

HubblesVariable

§

Ic1287

§

Ic1297

§

Ic2149

§

Ic2165

§

Ic2448

§

Ic2501

§

Ic2553

§

Ic2621

§

Ic289

§

Ic4191

§

Ic4604

§

Ic4634

§

Ic4663

§

Ic4673

§

Ic4699

§

Ic4776

§

Ic4846

§

Ic4997

§

Ic5117

§

Ic5148

§

Ic5217

§

IrisNebula

§

JellyfishNebula

§

LagoonNebula

§

Lbn623

§

LemonSliceNebula

§

LittleDumbbellNebula

§

LittleGemNebula

§

LittleGhostNebula

§

LupusDarkRegion

§

LupusDarkRegionB

§

Messier78

§

MonkeyHeadNebula

§

MuscaDarkRegion

§

Ngc1333

§

Ngc1360

§

Ngc1491

§

Ngc1501

§

Ngc1514

§

Ngc1535

§

Ngc1931

§

Ngc1999

§

Ngc2022

§

Ngc2371

§

Ngc2392

§

Ngc2438

§

Ngc2440

§

Ngc2452

§

Ngc2792

§

Ngc281

§

Ngc2818

§

Ngc2867

§

Ngc2899

§

Ngc3195

§

Ngc3199

§

Ngc3211

§

Ngc3699

§

Ngc4361

§

Ngc5307

§

Ngc5315

§

Ngc5367

§

Ngc5873

§

Ngc5882

§

Ngc5979

§

Ngc6058

§

Ngc6153

§

Ngc6188

§

Ngc6210

§

Ngc6326

§

Ngc6337

§

Ngc6357

§

Ngc6445

§

Ngc6563

§

Ngc6565

§

Ngc6567

§

Ngc6572

§

Ngc6629

§

Ngc6644

§

Ngc6751

§

Ngc6781

§

Ngc6790

§

Ngc6803

§

Ngc6804

§

Ngc6820

§

Ngc6842

§

Ngc6852

§

Ngc6879

§

Ngc6884

§

Ngc6886

§

Ngc6891

§

Ngc7026

§

Ngc7027

§

Ngc7048

§

Ngc7354

§

Ngc7538

§

Ngc7822

§

NorthAmericaNebula

§

OmegaNebula

§

OphiuchusDarkRegion

§

OphiuchusDarkRegionB

§

OphiuchusDarkRegionC

§

OrionDarkRegion

§

OrionNebula

§

OwlNebula

§

ParrotsHead

§

PelicanNebula

§

PencilNebula

§

PerseusDarkRegion

§

PhantomStreak

§

PipeBowl

§

PipeStem

§

Pleiades

§

PuppisDarkRegion

§

PuppisDarkRegionB

§

RCra

§

RedSpiderNebula

§

RetinaNebula

§

RhoOphiuchi

§

RingNebula

§

RosetteNebula

§

RunningManNebula

§

SadrRegion

§

SaturnNebula

§

ScorpiusDarkRegion

§

ScutumDarkRegion

§

SeagullNebula

§

SkullAndCrossbonesNebula

§

SkullNebula

§

Snake

§

SoulNebula

§

SpiralPlanetaryNebula

§

SpirographNebula

§

StatueOfLibertyNebula

§

StruvesLostNebula

§

TaurusDarkRegion

§

ThorsHelmet

§

TrifidNebula

§

TrifidOfTheNorth

§

VeilNebulaEast

§

VeilNebulaWest

§

VelaDarkRegion

§

VulpeculaDarkRegion

§

WhiteEyedPea

§

WitchHeadNebula

§

FlyooGroaSOZE0

§

EollsGraaeAAAH31

Implementations§

Source§

impl Nebula

Source

pub fn center(&self) -> [f32; 3]

Source

pub fn distance_to(&self, other: [f32; 3]) -> GalacticDistance

Calculates the distance to the given coordinates from the center of the nebula.

Source

pub fn closest_to(pos: [f32; 3]) -> Nebula

Calculates the closest nebula to the given coordinates.

Trait Implementations§

Source§

impl Debug for Nebula

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Nebula

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl IntoEnumIterator for Nebula

Source§

type Iterator = NebulaIter

Source§

fn iter() -> NebulaIter

Auto Trait Implementations§

§

impl Freeze for Nebula

§

impl RefUnwindSafe for Nebula

§

impl Send for Nebula

§

impl Sync for Nebula

§

impl Unpin for Nebula

§

impl UnwindSafe for Nebula

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.