pub struct HitObjectSlider {
pub pos: Pos,
pub new_combo: bool,
pub combo_offset: i32,
pub path: SliderPath,
pub node_samples: Vec<Vec<HitSampleInfo>>,
pub repeat_count: i32,
pub velocity: f64,
}Expand description
A slider HitObject.
Fields§
§pos: Pos§new_combo: bool§combo_offset: i32§path: SliderPath§node_samples: Vec<Vec<HitSampleInfo>>§repeat_count: i32§velocity: f64Implementations§
Source§impl HitObjectSlider
impl HitObjectSlider
pub const fn span_count(&self) -> i32
Sourcepub fn duration(&mut self) -> f64
pub fn duration(&mut self) -> f64
Returns the duration of the slider.
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 HitObjectSlider::duration_with_bufs so the buffers are
re-used for all sliders.
Sourcepub fn duration_with_bufs(&mut self, bufs: &mut CurveBuffers) -> f64
pub fn duration_with_bufs(&mut self, bufs: &mut CurveBuffers) -> f64
Returns the duration of the slider.
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 Clone for HitObjectSlider
impl Clone for HitObjectSlider
Source§fn clone(&self) -> HitObjectSlider
fn clone(&self) -> HitObjectSlider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HitObjectSlider
impl Debug for HitObjectSlider
Source§impl PartialEq for HitObjectSlider
impl PartialEq for HitObjectSlider
impl StructuralPartialEq for HitObjectSlider
Auto Trait Implementations§
impl Freeze for HitObjectSlider
impl RefUnwindSafe for HitObjectSlider
impl Send for HitObjectSlider
impl Sync for HitObjectSlider
impl Unpin for HitObjectSlider
impl UnwindSafe for HitObjectSlider
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