[−][src]Struct libosu::HitObject
Represents a single hit object.
Fields
pos: Point<i32>
The position on the map at which this hit object is located (head for sliders).
start_time: TimeLocation
When this hit object occurs during the map.
kind: HitObjectKind
The kind of HitObject this represents (circle, slider, spinner).
new_combo: bool
Whether or not this object begins a new combo.
timing_point: Option<TimingPoint>
Reference to the timing point under which this HitObject belongs.
skip_color: i32
The number of combo colors to skip
additions: Additions
The hitsound additions attached to this hit object.
sample_info: SampleInfo
The sample used to play the hitsound assigned to this hit object.
Implementations
impl HitObject
[src]
impl HitObject
[src]
pub fn from_osz(input: &str) -> Result<HitObject, Error>
[src]
Creates a HitObject from the *.osz format
pub fn as_osz(&self) -> Result<String, Error>
[src]
Serializes this HitObject into the *.osz format.
Trait Implementations
impl Clone for HitObject
[src]
impl Debug for HitObject
[src]
impl Eq for HitObject
[src]
impl Ord for HitObject
[src]
pub fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<HitObject> for HitObject
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<HitObject> for HitObject
[src]
Auto Trait Implementations
impl RefUnwindSafe for HitObject
[src]
impl Send for HitObject
[src]
impl Sync for HitObject
[src]
impl Unpin for HitObject
[src]
impl UnwindSafe for HitObject
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,