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§

source

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

source§

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

source§

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.

source§

impl<T> SecondsSource for &Twhere T: SecondsSource,

source§

impl SecondsSource for &str

source§

impl SecondsSource for String

source§

impl SecondsSource for f32

Implementors§