Skip to content

Commit

Permalink
Put infinities closer
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Dec 18, 2023
1 parent 7a62b25 commit 0fc6808
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cidre/src/cm/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ impl Time {
/// ```
/// use cidre::cm;
///
/// assert!(cm::Time::infinity().is_pos_infinity())
/// assert!(cm::Time::infinity().is_pos_infinity());
/// ```
#[inline]
pub const fn is_pos_infinity(&self) -> bool {
Expand Down Expand Up @@ -202,12 +202,6 @@ impl Time {
unsafe { CMTimeMultiplyByFloat64(*self, multiplier) }
}

#[doc(alias = "kCMTimeNegativeInfinity")]
#[inline]
pub fn neg_infinity() -> Time {
unsafe { kCMTimeNegativeInfinity }
}

/// Returns valid Time with value and timescale. Epoch is implied to be 0.
///
/// ```
Expand All @@ -229,6 +223,12 @@ impl Time {
unsafe { kCMTimePositiveInfinity }
}

#[doc(alias = "kCMTimeNegativeInfinity")]
#[inline]
pub fn neg_infinity() -> Time {
unsafe { kCMTimeNegativeInfinity }
}

#[inline]
pub fn show(&self) {
unsafe { CMTimeShow(*self) }
Expand Down

0 comments on commit 0fc6808

Please # to comment.