pub struct HitObject {
pub pos: Pos,
pub start_time: f64,
pub kind: HitObjectKind,
}Expand description
All hitobject related data required for difficulty and performance
calculation except for the HitSoundType.
Fields§
§pos: Pos§start_time: f64§kind: HitObjectKindImplementations§
Source§impl HitObject
impl HitObject
Sourcepub const fn is_spinner(&self) -> bool
pub const fn is_spinner(&self) -> bool
Whether the hitobject is a spinner.
Sourcepub const fn is_hold_note(&self) -> bool
pub const fn is_hold_note(&self) -> bool
Whether the hitobject is a hold note.
Trait Implementations§
Source§impl PartialOrd for HitObject
impl PartialOrd for HitObject
impl StructuralPartialEq for HitObject
Auto Trait Implementations§
impl Freeze for HitObject
impl RefUnwindSafe for HitObject
impl Send for HitObject
impl Sync for HitObject
impl Unpin for HitObject
impl UnwindSafe for HitObject
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