Trait vtc::FramerateSource

source ·
pub trait FramerateSource: Debug {
    // Required method
    fn to_playback(
        &self,
        ntsc: Ntsc,
        is_timebase: bool
    ) -> FramerateSourceResult;
}
Expand description

Implemented by any type that can be parsed into a rational playback frames-per-second value for a given an NTSC standard and whether the value represents a playback speed or a timecode timebase.

In most cases types that implement this trait can convert to a num::Rational64 value, then call num::Rational64::to_playback to complete the conversion.

Required Methods§

source

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

to_playback converts the implementing value to a Rational64 which represents the playback frames-per-second, then

Trait Implementations§

source§

impl FramerateSource for &dyn FramerateSource

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

to_playback converts the implementing value to a Rational64 which represents the playback frames-per-second, then

Implementations on Foreign Types§

source§

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

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

source§

impl FramerateSource for u16

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

source§

impl FramerateSource for i16

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

source§

impl FramerateSource for f32

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

source§

impl FramerateSource for u8

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

source§

impl FramerateSource for f64

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

source§

impl FramerateSource for Rational64

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

source§

impl FramerateSource for Rational32

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

source§

impl FramerateSource for String

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

source§

impl FramerateSource for u64

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

source§

impl FramerateSource for u32

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

source§

impl FramerateSource for i64

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

source§

impl FramerateSource for i32

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

source§

impl FramerateSource for &str

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

source§

impl FramerateSource for i8

source§

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult

Implementors§