[][src]Struct libosu::TimingPoint

pub struct TimingPoint {
    pub time: TimeLocation,
    pub kiai: bool,
    pub sample_set: SampleSet,
    pub sample_index: u32,
    pub volume: u16,
    pub kind: TimingPointKind,
}

A timing point, which represents configuration settings for a timing section.

This is a generic timing point struct representing both inherited and uninherited timing points, distinguished by the kind field.

Fields

time: TimeLocation

The timestamp of this timing point, represented as a TimeLocation.

kiai: bool

Whether or not Kiai time should be on for this timing point.

sample_set: SampleSet

The sample set associated with this timing section.

sample_index: u32

Index (if using a custom sample)

volume: u16

Volume of this timing section.

kind: TimingPointKind

The type of this timing point. See TimingPointKind.

Implementations

impl TimingPoint[src]

pub fn from_osz(
    input: impl AsRef<str>,
    parent: &Option<TimingPoint>
) -> Result<TimingPoint, Error>
[src]

Creates a TimingPoint from the *.osz format

pub fn as_osz(&self) -> Result<String, Error>[src]

Serializes this TimingPoint into the *.osz format.

Trait Implementations

impl Clone for TimingPoint[src]

impl Debug for TimingPoint[src]

impl Eq for TimingPoint[src]

impl Ord for TimingPoint[src]

impl PartialEq<TimingPoint> for TimingPoint[src]

impl PartialOrd<TimingPoint> for TimingPoint[src]

impl Serialize for TimingPoint[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.