Struct qua_format::HitObjectInfo
source · [−]pub struct HitObjectInfo {
pub start_time: i32,
pub lane: i32,
pub end_time: i32,
pub hit_sound: u8,
pub key_sounds: Vec<KeySoundInfo>,
pub editor_layer: i32,
}Expand description
A note to be played in-game
A long note will have an end_time > 0.
Fields
start_time: i32The time in milliseconds when the HitObject is supposed to be hit.
lane: i32The lane the HitObject falls in
end_time: i32The endtime of the HitObject (if greater than 0, it’s considered a hold note.)
hit_sound: u8Bitwise combination of hit sounds for this object
key_sounds: Vec<KeySoundInfo>Key sounds to play when this object is hit.
editor_layer: i32The layer in the editor that the object belongs to (index in the array).
Trait Implementations
sourceimpl Clone for HitObjectInfo
impl Clone for HitObjectInfo
sourcefn clone(&self) -> HitObjectInfo
fn clone(&self) -> HitObjectInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Default for HitObjectInfo
impl Default for HitObjectInfo
sourceimpl<'de> Deserialize<'de> for HitObjectInfo where
HitObjectInfo: Default,
impl<'de> Deserialize<'de> for HitObjectInfo where
HitObjectInfo: Default,
sourcefn 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
sourceimpl PartialEq<HitObjectInfo> for HitObjectInfo
impl PartialEq<HitObjectInfo> for HitObjectInfo
sourcefn eq(&self, other: &HitObjectInfo) -> bool
fn eq(&self, other: &HitObjectInfo) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &HitObjectInfo) -> bool
fn ne(&self, other: &HitObjectInfo) -> bool
This method tests for !=.
sourceimpl Serialize for HitObjectInfo
impl Serialize for HitObjectInfo
impl StructuralPartialEq for HitObjectInfo
Auto Trait Implementations
impl RefUnwindSafe for HitObjectInfo
impl Send for HitObjectInfo
impl Sync for HitObjectInfo
impl Unpin for HitObjectInfo
impl UnwindSafe for HitObjectInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more