[][src]Struct reaper_medium::Bpm

pub struct Bpm(_);

This represents a tempo measured in beats per minute.

Implementations

impl Bpm[src]

pub const MIN: Bpm[src]

The minimum possible value (1.0 bpm).

pub const MAX: Bpm[src]

The maximum possible value (960.0 bpm).

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

Creates a BPM value.

Panics

This function panics if the given value is not within the BPM range supported by REAPER (1.0..=960.0).

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

Returns the wrapped value.

Trait Implementations

impl Clone for Bpm[src]

impl Copy for Bpm[src]

impl Debug for Bpm[src]

impl Default for Bpm[src]

impl Display for Bpm[src]

impl PartialEq<Bpm> for Bpm[src]

impl PartialOrd<Bpm> for Bpm[src]

impl StructuralPartialEq for Bpm[src]

Auto Trait Implementations

impl RefUnwindSafe for Bpm

impl Send for Bpm

impl Sync for Bpm

impl Unpin for Bpm

impl UnwindSafe for Bpm

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.