Struct rosu_pp::model::beatmap::BreakPeriod
source · pub struct BreakPeriod {
pub start_time: f64,
pub end_time: f64,
}
Expand description
A break section during a Beatmap
.
Fields§
§start_time: f64
§end_time: f64
Implementations§
source§impl BreakPeriod
impl BreakPeriod
sourcepub const MIN_BREAK_DURATION: f64 = 650f64
pub const MIN_BREAK_DURATION: f64 = 650f64
The minimum duration required for a break to have any effect.
sourcepub fn has_effect(&self) -> bool
pub fn has_effect(&self) -> bool
Whether the break has any effect.
Trait Implementations§
source§impl Clone for BreakPeriod
impl Clone for BreakPeriod
source§fn clone(&self) -> BreakPeriod
fn clone(&self) -> BreakPeriod
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 Debug for BreakPeriod
impl Debug for BreakPeriod
source§impl Default for BreakPeriod
impl Default for BreakPeriod
source§fn default() -> BreakPeriod
fn default() -> BreakPeriod
Returns the “default value” for a type. Read more
source§impl PartialEq for BreakPeriod
impl PartialEq for BreakPeriod
source§fn eq(&self, other: &BreakPeriod) -> bool
fn eq(&self, other: &BreakPeriod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BreakPeriod
impl StructuralPartialEq for BreakPeriod
Auto Trait Implementations§
impl Freeze for BreakPeriod
impl RefUnwindSafe for BreakPeriod
impl Send for BreakPeriod
impl Sync for BreakPeriod
impl Unpin for BreakPeriod
impl UnwindSafe for BreakPeriod
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