pub struct EffectPoint {
pub time: f64,
pub kiai: bool,
pub scroll_speed: f64,
}
Expand description
Effect-related info about this control point.
Fields§
§time: f64
§kiai: bool
§scroll_speed: f64
Implementations§
Source§impl EffectPoint
impl EffectPoint
pub const DEFAULT_KIAI: bool = false
pub const DEFAULT_SCROLL_SPEED: f64 = 1f64
pub const fn new(time: f64, kiai: bool) -> Self
pub fn is_redundant(&self, existing: &Self) -> bool
Trait Implementations§
Source§impl Clone for EffectPoint
impl Clone for EffectPoint
Source§fn clone(&self) -> EffectPoint
fn clone(&self) -> EffectPoint
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 ControlPoint<BeatmapState> for EffectPoint
impl ControlPoint<BeatmapState> for EffectPoint
Source§fn check_already_existing(&self, state: &BeatmapState) -> bool
fn check_already_existing(&self, state: &BeatmapState) -> bool
Whether
self
is redundant w.r.t. an already existing control point.Source§fn add(self, state: &mut BeatmapState)
fn add(self, state: &mut BeatmapState)
Adding the control point into the collection. Read more
Source§impl ControlPoint<Vec<EffectPoint>> for EffectPoint
impl ControlPoint<Vec<EffectPoint>> for EffectPoint
Source§fn check_already_existing(&self, effect_points: &Vec<EffectPoint>) -> bool
fn check_already_existing(&self, effect_points: &Vec<EffectPoint>) -> bool
Whether
self
is redundant w.r.t. an already existing control point.Source§impl Debug for EffectPoint
impl Debug for EffectPoint
Source§impl Default for EffectPoint
impl Default for EffectPoint
Source§impl PartialEq for EffectPoint
impl PartialEq for EffectPoint
impl Copy for EffectPoint
impl StructuralPartialEq for EffectPoint
Auto Trait Implementations§
impl Freeze for EffectPoint
impl RefUnwindSafe for EffectPoint
impl Send for EffectPoint
impl Sync for EffectPoint
impl Unpin for EffectPoint
impl UnwindSafe for EffectPoint
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