[][src]Enum libosu::HitObjectKind

pub enum HitObjectKind {
    Circle,
    Slider(SliderInfo),
    Spinner(SpinnerInfo),
}

Distinguishes between different types of hit objects.

Variants

Circle

Regular hit circle.

Slider(SliderInfo)

Slider.

Spinner(SpinnerInfo)

Spinner.

Implementations

impl HitObjectKind[src]

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

Is the given HitObject a hit circle?

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

Is the given HitObject a slider?

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

Is the given HitObject a spinner?

Trait Implementations

impl Clone for HitObjectKind[src]

impl Debug for HitObjectKind[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.