Trait vtc::SecondsSource[][src]

pub trait SecondsSource: Debug {
    fn to_seconds(&self, rate: Framerate) -> SecondsSourceResult;
}
Expand description

Types implementing this trait can be converted into the number of real-world seconds that have elapsed since a timecode value of 00:00:00:00.

Required methods

fn to_seconds(&self, rate: Framerate) -> SecondsSourceResult[src]

Returns the number of real-world seconds this value represents.

Trait Implementations

impl SecondsSource for &dyn SecondsSource[src]

fn to_seconds(&self, rate: Framerate) -> SecondsSourceResult[src]

Returns the number of real-world seconds this value represents.

Implementations on Foreign Types

impl<T> SecondsSource for &T where
    T: SecondsSource
[src]

impl SecondsSource for Rational64[src]

Types implementing this trait can be converted into the number of real-world seconds that have elapsed since a timecode value of 00:00:00:00.

impl SecondsSource for f64[src]

impl SecondsSource for f32[src]

impl SecondsSource for &str[src]

impl SecondsSource for String[src]

Implementors