[][src]Struct libosu::timing::TimestampSec

pub struct TimestampSec(pub NotNan<f64>);

A struct representing a location in time as seconds (f64)

Implementations

impl TimestampSec[src]

pub fn as_millis(&self) -> TimestampMillis[src]

Convert the timestamp to milliseconds

pub fn unsafe_new(time: f64) -> Self[src]

Create a new TimestampSec unsafely

Trait Implementations

impl Add<Duration> for TimestampSec[src]

type Output = TimestampSec

The resulting type after applying the + operator.

impl Clone for TimestampSec[src]

impl Copy for TimestampSec[src]

impl Debug for TimestampSec[src]

impl Display for TimestampSec[src]

impl Eq for TimestampSec[src]

impl Ord for TimestampSec[src]

impl PartialEq<TimestampSec> for TimestampSec[src]

impl PartialOrd<TimestampSec> for TimestampSec[src]

impl StructuralEq for TimestampSec[src]

impl StructuralPartialEq for TimestampSec[src]

impl Sub<TimestampSec> for TimestampSec[src]

type Output = Duration

The resulting type after applying the - operator.

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> ToString for T where
    T: Display + ?Sized
[src]

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.