[][src]Struct reaper_medium::PlaybackSpeedFactor

pub struct PlaybackSpeedFactor(_);

This represents a play rate measured as factor of the normal play speed.

Implementations

impl PlaybackSpeedFactor[src]

pub const MIN: PlaybackSpeedFactor[src]

The minimum possible value (a quarter of the normal play speed).

pub const MAX: PlaybackSpeedFactor[src]

The maximum possible value (four times the normal play speed).

pub fn new(value: f64) -> PlaybackSpeedFactor[src]

Creates a playback speed value.

Panics

This function panics if the given value is not within the playback speed range supported by REAPER (0.25..=4.00).

pub const fn get(&self) -> f64[src]

Returns the wrapped value.

Trait Implementations

impl Clone for PlaybackSpeedFactor[src]

impl Copy for PlaybackSpeedFactor[src]

impl Debug for PlaybackSpeedFactor[src]

impl Default for PlaybackSpeedFactor[src]

impl Display for PlaybackSpeedFactor[src]

impl PartialEq<PlaybackSpeedFactor> for PlaybackSpeedFactor[src]

impl PartialOrd<PlaybackSpeedFactor> for PlaybackSpeedFactor[src]

impl StructuralPartialEq for PlaybackSpeedFactor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.