[][src]Struct osu_db::replay::ManiaButtonSet

pub struct ManiaButtonSet(pub u32);

Any combination of mania buttons being pressed.

Button indices start from 0, and go left-to-right. Button indices outside the replay key count should never be down.

Implementations

impl ManiaButtonSet[src]

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

pub fn from_bits(bits: u32) -> ManiaButtonSet[src]

pub fn none() -> ManiaButtonSet[src]

Create a new key combination with no keys pressed.

pub fn is_down(&self, button: u32) -> bool[src]

Check whether a certain key is pressed.

pub fn set_down(&self, button: u32, is_down: bool) -> ManiaButtonSet[src]

Set the pressed status of a key.

pub fn press(&self, button: u32) -> ManiaButtonSet[src]

Set the pressed status of a key to true.

pub fn release(&self, button: u32) -> ManiaButtonSet[src]

Set the pressed status of a key to false.

Trait Implementations

impl Clone for ManiaButtonSet[src]

impl Copy for ManiaButtonSet[src]

impl Debug for ManiaButtonSet[src]

impl Eq for ManiaButtonSet[src]

impl Hash for ManiaButtonSet[src]

impl PartialEq<ManiaButtonSet> for ManiaButtonSet[src]

impl StructuralEq for ManiaButtonSet[src]

impl StructuralPartialEq for ManiaButtonSet[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.