pub enum GameMods {
Lazer(GameMods),
Intermode(GameModsIntermode),
Legacy(GameModsLegacy),
}Expand description
Collection of game mods.
A convenient way to create GameMods is through its From<T>
implementations where T can be
u32rosu_mods::GameModsLegacyrosu_mods::GameModsrosu_mods::GameModsIntermode&rosu_mods::GameModsIntermode
§Example
use rosu_pp::GameMods;
use rosu_mods::{GameModsIntermode, GameModsLegacy, GameMods as GameModsLazer};
let int = GameMods::from(64 + 8);
let legacy = GameMods::from(GameModsLegacy::Hidden | GameModsLegacy::Easy);
let lazer = GameMods::from(GameModsLazer::new());
let intermode = GameMods::from(GameModsIntermode::new());Variants§
Trait Implementations§
Source§impl From<&GameModsIntermode> for GameMods
impl From<&GameModsIntermode> for GameMods
Source§fn from(mods: &GameModsIntermode) -> Self
fn from(mods: &GameModsIntermode) -> Self
Converts to this type from the input type.
Source§impl From<GameMods> for GameMods
impl From<GameMods> for GameMods
Source§fn from(mods: GameModsLazer) -> Self
fn from(mods: GameModsLazer) -> Self
Converts to this type from the input type.
Source§impl From<GameModsIntermode> for GameMods
impl From<GameModsIntermode> for GameMods
Source§fn from(mods: GameModsIntermode) -> Self
fn from(mods: GameModsIntermode) -> Self
Converts to this type from the input type.
Source§impl From<GameModsLegacy> for GameMods
impl From<GameModsLegacy> for GameMods
Source§fn from(mods: GameModsLegacy) -> Self
fn from(mods: GameModsLegacy) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for GameMods
Auto Trait Implementations§
impl Freeze for GameMods
impl RefUnwindSafe for GameMods
impl Send for GameMods
impl Sync for GameMods
impl Unpin for GameMods
impl UnwindSafe for GameMods
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