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]
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]
impl SecondsSource for &dyn SecondsSource
[src]fn to_seconds(&self, rate: Framerate) -> SecondsSourceResult
[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<T> SecondsSource for &T where
T: SecondsSource,
[src]fn to_seconds(&self, rate: Framerate) -> SecondsSourceResult
[src]
impl SecondsSource for Rational64
[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.
fn to_seconds(&self, _: Framerate) -> SecondsSourceResult
[src]
impl SecondsSource for f64
[src]
impl SecondsSource for f64
[src]fn to_seconds(&self, _: Framerate) -> SecondsSourceResult
[src]
impl SecondsSource for f32
[src]
impl SecondsSource for f32
[src]fn to_seconds(&self, rate: Framerate) -> SecondsSourceResult
[src]
impl SecondsSource for &str
[src]
impl SecondsSource for &str
[src]fn to_seconds(&self, rate: Framerate) -> SecondsSourceResult
[src]
impl SecondsSource for String
[src]
impl SecondsSource for String
[src]fn to_seconds(&self, rate: Framerate) -> SecondsSourceResult
[src]
Implementors
impl SecondsSource for &dyn SecondsSource
[src]
impl SecondsSource for &dyn SecondsSource
[src]