pub struct HitObject {
pub start_time: f64,
pub kind: HitObjectKind,
pub samples: Vec<HitSampleInfo>,
}Expand description
A hit object of a Beatmap.
Fields§
§start_time: f64§kind: HitObjectKind§samples: Vec<HitSampleInfo>Implementations§
Source§impl HitObject
impl HitObject
Sourcepub fn end_time(&mut self) -> f64
pub fn end_time(&mut self) -> f64
Returns the end time of the HitObject.
If the curve has not yet been accessed, it needs to be calculated first.
In case curves of multiple slider paths are being calculated, it is
recommended to initialize CurveBuffers and pass a mutable reference
of it to HitObject::end_time_with_bufs so the buffers are re-used
for all sliders.
Sourcepub fn end_time_with_bufs(&mut self, bufs: &mut CurveBuffers) -> f64
pub fn end_time_with_bufs(&mut self, bufs: &mut CurveBuffers) -> f64
Returns the end time of the HitObject.
If the slider’s curve has not yet been accessed, it needs to be
calculated first for which the given CurveBuffers are used.
Trait Implementations§
Source§impl From<&HitObject> for HitObjectType
impl From<&HitObject> for HitObjectType
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