Struct rosu_map::section::timing_points::EffectPoint
source · 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: f64Implementations§
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 copy 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<ControlPoints> for EffectPoint
impl ControlPoint<ControlPoints> for EffectPoint
source§fn check_already_existing(&self, control_points: &ControlPoints) -> bool
fn check_already_existing(&self, control_points: &ControlPoints) -> bool
Whether
self is redundant w.r.t. an already existing control point.source§fn add(self, control_points: &mut ControlPoints)
fn add(self, control_points: &mut ControlPoints)
Adding the control point into the collection. Read more
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
source§fn eq(&self, other: &EffectPoint) -> bool
fn eq(&self, other: &EffectPoint) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for EffectPoint
impl PartialOrd for EffectPoint
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl StructuralPartialEq for EffectPoint
Auto Trait Implementations§
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