pub struct PlaybackSpeedFactor(/* private fields */);
Expand description
This represents a play rate measured as factor of the normal play speed.
Implementations§
Source§impl PlaybackSpeedFactor
impl PlaybackSpeedFactor
Sourcepub const MIN: PlaybackSpeedFactor
pub const MIN: PlaybackSpeedFactor
The minimum possible value (a quarter of the normal play speed).
Sourcepub const MAX: PlaybackSpeedFactor
pub const MAX: PlaybackSpeedFactor
The maximum possible value (four times the normal play speed).
Sourcepub fn new(value: f64) -> PlaybackSpeedFactor
pub fn new(value: f64) -> PlaybackSpeedFactor
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)
.
Trait Implementations§
Source§impl Clone for PlaybackSpeedFactor
impl Clone for PlaybackSpeedFactor
Source§fn clone(&self) -> PlaybackSpeedFactor
fn clone(&self) -> PlaybackSpeedFactor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PlaybackSpeedFactor
impl Debug for PlaybackSpeedFactor
Source§impl Default for PlaybackSpeedFactor
impl Default for PlaybackSpeedFactor
Source§fn default() -> PlaybackSpeedFactor
fn default() -> PlaybackSpeedFactor
Returns the “default value” for a type. Read more
Source§impl Display for PlaybackSpeedFactor
impl Display for PlaybackSpeedFactor
Source§impl PartialEq for PlaybackSpeedFactor
impl PartialEq for PlaybackSpeedFactor
Source§impl PartialOrd for PlaybackSpeedFactor
impl PartialOrd for PlaybackSpeedFactor
impl Copy for PlaybackSpeedFactor
impl StructuralPartialEq for PlaybackSpeedFactor
Auto Trait Implementations§
impl Freeze for PlaybackSpeedFactor
impl RefUnwindSafe for PlaybackSpeedFactor
impl Send for PlaybackSpeedFactor
impl Sync for PlaybackSpeedFactor
impl Unpin for PlaybackSpeedFactor
impl UnwindSafe for PlaybackSpeedFactor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more