[][src]Struct libosu::Mods

pub struct Mods { /* fields omitted */ }

Mod listing with their respective bitwise representation.

This list is ripped directly from the osu! wiki.

Implementations

impl Mods[src]

pub const None: Mods[src]

No selected mods

pub const NoFail: Mods[src]

No-Fail (NF) Makes the player incapabale of failing beatmaps, even if their life drops to zero.

pub const Easy: Mods[src]

Easy (EZ) halves the all difficulty settings for a beatmap, and gives the player 2 extra lives in modes other than taiko.

pub const NoVideo: Mods[src]

No Video (NV) disables the background video of a beatmap. It is no longer available for use, it was replaced with a setting.

pub const Hidden: Mods[src]

Hidden (HD) removes approach circles and causes hit objects to fade after appearing.

pub const HardRock: Mods[src]

Hard Rock (HR) increases CS by 30% and all other difficulty settings by 40%.

pub const SuddenDeath: Mods[src]

Sudden Death (SD) will cause the player to fail after missing a hit object or slider tick.

pub const DoubleTime: Mods[src]

Double Time (DT) increasing the overall speed to 150%.

pub const Relax: Mods[src]

Relax (RL) removes the need to tap hitobjects in standard, color judgement in taiko and allows free movement at any speed in catch.

pub const HalfTime: Mods[src]

Half Time (HT) decreases the overall speed to 75%.

pub const Nightcore: Mods[src]

Nightcore (NC) has the same effect as doubletime, but increases the pitch and adds a drum tick in the background. Nightcore will only be set alongside doubletime.

pub const Flashlight: Mods[src]

Flashlight (FL) limits the visible area of the beatmap.

pub const Autoplay: Mods[src]

Autoplay plays the beatmap automatically.

pub const SpunOut: Mods[src]

SpunOut (SO) spins spinners automatically in osu!standard.

pub const Relax2: Mods[src]

Autopilot (AP, Relex2) will automatically move the players cursor (osu!standard only).

pub const Perfect: Mods[src]

Perfect (PF) will fail the player if they miss or a score under 300 on a hit object, only set along with SuddenDeath.

pub const Key4: Mods[src]

4Key (4K, xK) forces maps converted into osu!mania to use 4 keys.

pub const Key5: Mods[src]

5Key (5K, xK) forces maps converted into osu!mania to use 5 keys.

pub const Key6: Mods[src]

6Key (6K, xK) forces maps converted into osu!mania to use 6 keys.

pub const Key7: Mods[src]

7Key (7K, xK) forces maps converted into osu!mania to use 7 keys.

pub const Key8: Mods[src]

8Key (8K, xK) forces maps converted into osu!mania to use 8 keys.

pub const FadeIn: Mods[src]

Fade In (FI) causes notes start invisible and fade in as they approach the judgement bar, only set along with Hidden (osu!mania only).

pub const Random: Mods[src]

Random (RD) randomizes note placement (osu!mania only).

pub const LastMod: Mods[src]

Cinema (CM, LastMod) only plays the video or storyboard, without any gameplay. Hitsounds will still be heard.

pub const TargetPractice: Mods[src]

Target Practice (TP) removes all mapped hitobjects and replaces them with a consistent set of target (osu!standard Cutting Edge only).

pub const Key9: Mods[src]

9Key (9K, xK) forces maps converted into osu!mania to use 9 keys.

pub const Key10: Mods[src]

10Key (10K, xK) forces maps converted into osu!mania to use 10 keys, it has been removed from the game.

pub const Key1: Mods[src]

1Key (1K, xK) forces maps converted into osu!mania to use 1 key.

pub const Key3: Mods[src]

3Key (3K, xK) forces maps converted into osu!mania to use 3 keys.

pub const Key2: Mods[src]

2Key (2K, xK) forces maps converted into osu!mania to use 2 keys.

pub const KeyMod: Mods[src]

Bits of Key4, Key5, Key6, Key7, and Key8.

pub const FreeModAllowed: Mods[src]

Mods allowed to be chosen when FreeMod is enabled in multiplayer.

pub const fn empty() -> Mods[src]

Returns an empty set of flags

pub const fn all() -> Mods[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u32[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<Mods>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u32) -> Mods[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: u32) -> Mods[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: Mods) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: Mods) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: Mods)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: Mods)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: Mods)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: Mods, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for Mods[src]

impl BitAnd<Mods> for Mods[src]

type Output = Mods

The resulting type after applying the & operator.

pub fn bitand(self, other: Mods) -> Mods[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<Mods> for Mods[src]

pub fn bitand_assign(&mut self, other: Mods)[src]

Disables all flags disabled in the set.

impl BitOr<Mods> for Mods[src]

type Output = Mods

The resulting type after applying the | operator.

pub fn bitor(self, other: Mods) -> Mods[src]

Returns the union of the two sets of flags.

impl BitOrAssign<Mods> for Mods[src]

pub fn bitor_assign(&mut self, other: Mods)[src]

Adds the set of flags.

impl BitXor<Mods> for Mods[src]

type Output = Mods

The resulting type after applying the ^ operator.

pub fn bitxor(self, other: Mods) -> Mods[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<Mods> for Mods[src]

pub fn bitxor_assign(&mut self, other: Mods)[src]

Toggles the set of flags.

impl Clone for Mods[src]

impl Copy for Mods[src]

impl Debug for Mods[src]

impl Default for Mods[src]

impl Eq for Mods[src]

impl Extend<Mods> for Mods[src]

impl FromIterator<Mods> for Mods[src]

impl Hash for Mods[src]

impl LowerHex for Mods[src]

impl Not for Mods[src]

type Output = Mods

The resulting type after applying the ! operator.

pub fn not(self) -> Mods[src]

Returns the complement of this set of flags.

impl Octal for Mods[src]

impl Ord for Mods[src]

impl PartialEq<Mods> for Mods[src]

impl PartialOrd<Mods> for Mods[src]

impl StructuralEq for Mods[src]

impl StructuralPartialEq for Mods[src]

impl Sub<Mods> for Mods[src]

type Output = Mods

The resulting type after applying the - operator.

pub fn sub(self, other: Mods) -> Mods[src]

Returns the set difference of the two sets of flags.

impl SubAssign<Mods> for Mods[src]

pub fn sub_assign(&mut self, other: Mods)[src]

Disables all flags enabled in the set.

impl UpperHex for Mods[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.