pub struct SimpleNote {
pub start: f64,
pub duration: f64,
pub volume: u16,
pub variant: u16,
}Fields§
§start: f64§duration: f64§volume: u16§variant: u16Implementations§
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SimpleNote
Source§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
impl Eq for SimpleNote
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
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SimpleNote
impl PartialEq for SimpleNote
Source§fn eq(&self, other: &SimpleNote) -> bool
fn eq(&self, other: &SimpleNote) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SimpleNote
impl PartialOrd for SimpleNote
Source§impl Serialize for SimpleNote
impl Serialize 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 UnsafeUnpin 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