pub enum GhostType {
Show 38 variants
PlayerBest,
WorldRecord,
ContinentalRecord,
Rival,
Special,
GhostRace,
Friend1,
Friend2,
Friend3,
Friend4,
Friend5,
Friend6,
Friend7,
Friend8,
Friend9,
Friend10,
Friend11,
Friend12,
Friend13,
Friend14,
Friend15,
Friend16,
Friend17,
Friend18,
Friend19,
Friend20,
Friend21,
Friend22,
Friend23,
Friend24,
Friend25,
Friend26,
Friend27,
Friend28,
Friend29,
Friend30,
NormalStaff,
ExpertStaff,
}Expand description
All possible Ghost Types representable in a ghost file.
Variants§
PlayerBest
WorldRecord
ContinentalRecord
Rival
A rival ghost matched against the player’s time.
Special
A special ghost (e.g. a Nintendo event ghost). More info on special ghosts here: https://tcrf.net/User:B_squo#About_Mario_Kart_Wii.27s_Special_Ghosts
GhostRace
A ghost downloaded from the Mario Kart Channel’s “Ghost Race” gamemode.
Friend1
Friend2
Friend3
Friend4
Friend5
Friend6
Friend7
Friend8
Friend9
Friend10
Friend11
Friend12
Friend13
Friend14
Friend15
Friend16
Friend17
Friend18
Friend19
Friend20
Friend21
Friend22
Friend23
Friend24
Friend25
Friend26
Friend27
Friend28
Friend29
Friend30
NormalStaff
ExpertStaff
Trait Implementations§
Source§impl From<GhostType> for u8
Converts a GhostType into its raw byte representation for the RKG header.
impl From<GhostType> for u8
Converts a GhostType into its raw byte representation for the RKG header.
Source§impl TryFrom<u8> for GhostType
Converts a raw byte value from the RKG header into a GhostType.
impl TryFrom<u8> for GhostType
Converts a raw byte value from the RKG header into a GhostType.
§Errors
Returns GhostTypeError::NonexistentGhostType if the byte does not
correspond to any known ghost type (valid range is 0x01–0x26).
impl Copy for GhostType
impl StructuralPartialEq for GhostType
Auto Trait Implementations§
impl Freeze for GhostType
impl RefUnwindSafe for GhostType
impl Send for GhostType
impl Sync for GhostType
impl Unpin for GhostType
impl UnsafeUnpin for GhostType
impl UnwindSafe for GhostType
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