pub enum OfficialSong {
Show 42 variants
StayInsideMe,
StereoMadness,
BackOnTrack,
Polargeist,
DryOut,
BaseAfterBase,
CantLetGo,
Jumper,
TimeMachine,
Cycles,
Xstep,
Clutterfunk,
TheoryOfEverything,
ElectromanAdventures,
Clubstep,
Electrodynamix,
HexagonForce,
BlastProcessing,
TheoryOfEverything2,
GeometricalDominator,
Deadlocked,
Fingerdash,
Dash,
Explorers,
TheSevenSeas,
VikingArena,
AirborneRobots,
Secret,
Payload,
BeastMode,
Machina,
Years,
Frontlines,
SpacePirates,
Striker,
Embers,
Round1,
MonsterDanceOff,
PressStart,
NockEm,
PowerTrip,
Unrecognized(i32),
}Expand description
All official songs used in GD, including in spin-off games.
Variants§
StayInsideMe
StereoMadness
BackOnTrack
Polargeist
DryOut
BaseAfterBase
CantLetGo
Jumper
TimeMachine
Cycles
Xstep
Clutterfunk
TheoryOfEverything
ElectromanAdventures
Clubstep
Electrodynamix
HexagonForce
BlastProcessing
TheoryOfEverything2
GeometricalDominator
Deadlocked
Fingerdash
Dash
Explorers
TheSevenSeas
VikingArena
AirborneRobots
Secret
Payload
BeastMode
Machina
Years
Frontlines
SpacePirates
Striker
Embers
Round1
MonsterDanceOff
PressStart
NockEm
PowerTrip
Unrecognized(i32)
Value that is unaccounted for (unknown case or corrupt value)
Implementations§
Source§impl OfficialSong
impl OfficialSong
Sourcepub fn to_num(&self) -> i32
pub fn to_num(&self) -> i32
Converts self to its numeric type. Autogenerated by the crate::repr_t macro.
Normally, #[repr(t)] would be used here as that would serve as the same thing. However, for cases where a value may be parsed that isn’t accounted for, an Unrecognized variant is necessary, which allows us to catch “other” values.
Trait Implementations§
Source§impl Clone for OfficialSong
impl Clone for OfficialSong
Source§fn clone(&self) -> OfficialSong
fn clone(&self) -> OfficialSong
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OfficialSong
Source§impl Debug for OfficialSong
impl Debug for OfficialSong
impl Eq for OfficialSong
Source§impl From<i32> for OfficialSong
impl From<i32> for OfficialSong
Source§impl Hash for OfficialSong
impl Hash for OfficialSong
Source§impl PartialEq for OfficialSong
impl PartialEq for OfficialSong
Source§fn eq(&self, other: &OfficialSong) -> bool
fn eq(&self, other: &OfficialSong) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OfficialSong
Auto Trait Implementations§
impl Freeze for OfficialSong
impl RefUnwindSafe for OfficialSong
impl Send for OfficialSong
impl Sync for OfficialSong
impl Unpin for OfficialSong
impl UnsafeUnpin for OfficialSong
impl UnwindSafe for OfficialSong
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.