pub struct CalculatedNote {
pub inner: TaikoNote,
pub idx: usize,
pub visible_start: f64,
pub visible_end: f64,
}Fields§
§inner: TaikoNote§idx: usize§visible_start: f64§visible_end: f64Implementations§
Trait Implementations§
Source§impl Clone for CalculatedNote
impl Clone for CalculatedNote
Source§fn clone(&self) -> CalculatedNote
fn clone(&self) -> CalculatedNote
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 CalculatedNote
impl Debug for CalculatedNote
Source§impl Note for CalculatedNote
impl Note for CalculatedNote
Source§fn variant(&self) -> u16
fn variant(&self) -> u16
Returns the user-defined hit type of the note.
For multi-track rhythm games, this can be used to the track number.
Source§fn set_duration(&mut self, duration: f64)
fn set_duration(&mut self, duration: f64)
Sets the duration of the note.
Source§fn set_volume(&mut self, volume: u16)
fn set_volume(&mut self, volume: u16)
Sets the volume (max hit count) of the note. (combo notes can be seen as a single note with volume > 1
Source§fn set_variant(&mut self, variant: impl Into<u16>)
fn set_variant(&mut self, variant: impl Into<u16>)
Sets the user-defined hit type of the note.
For multi-track rhythm games, this can be used to the track number.
fn cmp(&self, other: &Self) -> Ordering
Source§impl Ord for CalculatedNote
impl Ord for CalculatedNote
Source§impl PartialEq for CalculatedNote
impl PartialEq for CalculatedNote
Source§impl PartialOrd for CalculatedNote
impl PartialOrd for CalculatedNote
impl Eq for CalculatedNote
impl StructuralPartialEq for CalculatedNote
Auto Trait Implementations§
impl Freeze for CalculatedNote
impl RefUnwindSafe for CalculatedNote
impl Send for CalculatedNote
impl Sync for CalculatedNote
impl Unpin for CalculatedNote
impl UnwindSafe for CalculatedNote
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