[−][src]Struct libosu::TimingPoint
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]
input: impl AsRef<str>,
parent: &Option<TimingPoint>
) -> Result<TimingPoint, Error>
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]
pub fn clone(&self) -> TimingPoint
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TimingPoint
[src]
impl Eq for TimingPoint
[src]
impl Ord for TimingPoint
[src]
pub fn cmp(&self, other: &TimingPoint) -> 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<TimingPoint> for TimingPoint
[src]
pub fn eq(&self, other: &TimingPoint) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<TimingPoint> for TimingPoint
[src]
pub fn partial_cmp(&self, other: &TimingPoint) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for TimingPoint
[src]
Auto Trait Implementations
impl RefUnwindSafe for TimingPoint
[src]
impl Send for TimingPoint
[src]
impl Sync for TimingPoint
[src]
impl Unpin for TimingPoint
[src]
impl UnwindSafe for TimingPoint
[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>,