pub struct SimpleNote {
pub start: f64,
pub duration: f64,
pub volume: u16,
pub variant: u16,
}
Fields§
§start: f64
§duration: f64
§volume: u16
§variant: u16
Implementations§
Trait Implementations§
Source§impl Clone for SimpleNote
impl Clone for SimpleNote
Source§fn clone(&self) -> SimpleNote
fn clone(&self) -> SimpleNote
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 SimpleNote
impl Debug for SimpleNote
Source§impl<'de> Deserialize<'de> for SimpleNote
impl<'de> Deserialize<'de> for SimpleNote
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Note for SimpleNote
impl Note for SimpleNote
Source§fn variant(&self) -> impl Into<u16>
fn variant(&self) -> impl Into<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 SimpleNote
impl Ord for SimpleNote
Source§impl PartialEq for SimpleNote
impl PartialEq for SimpleNote
Source§impl PartialOrd for SimpleNote
impl PartialOrd for SimpleNote
Source§impl Serialize for SimpleNote
impl Serialize for SimpleNote
impl Copy for SimpleNote
impl Eq for SimpleNote
impl StructuralPartialEq for SimpleNote
Auto Trait Implementations§
impl Freeze for SimpleNote
impl RefUnwindSafe for SimpleNote
impl Send for SimpleNote
impl Sync for SimpleNote
impl Unpin for SimpleNote
impl UnwindSafe for SimpleNote
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