Trait vtc::SecondsSource
source · pub trait SecondsSource: Debug {
// Required method
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§
sourcefn to_seconds(&self, rate: Framerate) -> SecondsSourceResult
fn to_seconds(&self, rate: Framerate) -> SecondsSourceResult
Returns the number of real-world seconds this value represents.
Trait Implementations§
source§impl SecondsSource for &dyn SecondsSource
impl SecondsSource for &dyn SecondsSource
source§fn to_seconds(&self, rate: Framerate) -> SecondsSourceResult
fn to_seconds(&self, rate: Framerate) -> SecondsSourceResult
Returns the number of real-world seconds this value represents.
Implementations on Foreign Types§
source§impl SecondsSource for f64
impl SecondsSource for f64
fn to_seconds(&self, _: Framerate) -> SecondsSourceResult
source§impl SecondsSource for Rational64
impl SecondsSource for Rational64
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.