Struct reaper_medium::PlaybackSpeedFactor
source · [−]pub struct PlaybackSpeedFactor(_);
Expand description
This represents a play rate measured as factor of the normal play speed.
Implementations
sourceimpl PlaybackSpeedFactor
impl PlaybackSpeedFactor
sourcepub const MIN: PlaybackSpeedFactor = _
pub const MIN: PlaybackSpeedFactor = _
The minimum possible value (a quarter of the normal playback speed).
sourcepub const NORMAL: PlaybackSpeedFactor = _
pub const NORMAL: PlaybackSpeedFactor = _
The normal playback speed.
sourcepub const MAX: PlaybackSpeedFactor = _
pub const MAX: PlaybackSpeedFactor = _
The maximum possible value (four times the normal playback speed).
sourcepub fn new(value: f64) -> PlaybackSpeedFactor
pub fn new(value: f64) -> PlaybackSpeedFactor
Creates a playback speed factor.
Panics
This function panics if the given value is not within the playback speed range supported by
REAPER (0.25..=4.00)
.
Trait Implementations
sourceimpl Clone for PlaybackSpeedFactor
impl Clone for PlaybackSpeedFactor
sourcefn clone(&self) -> PlaybackSpeedFactor
fn clone(&self) -> PlaybackSpeedFactor
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PlaybackSpeedFactor
impl Debug for PlaybackSpeedFactor
sourceimpl Default for PlaybackSpeedFactor
impl Default for PlaybackSpeedFactor
sourceimpl Display for PlaybackSpeedFactor
impl Display for PlaybackSpeedFactor
sourceimpl PartialEq<PlaybackSpeedFactor> for PlaybackSpeedFactor
impl PartialEq<PlaybackSpeedFactor> for PlaybackSpeedFactor
sourcefn eq(&self, other: &PlaybackSpeedFactor) -> bool
fn eq(&self, other: &PlaybackSpeedFactor) -> bool
sourceimpl PartialOrd<PlaybackSpeedFactor> for PlaybackSpeedFactor
impl PartialOrd<PlaybackSpeedFactor> for PlaybackSpeedFactor
sourcefn partial_cmp(&self, other: &PlaybackSpeedFactor) -> Option<Ordering>
fn partial_cmp(&self, other: &PlaybackSpeedFactor) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl TryFrom<f64> for PlaybackSpeedFactor
impl TryFrom<f64> for PlaybackSpeedFactor
impl Copy for PlaybackSpeedFactor
impl StructuralPartialEq for PlaybackSpeedFactor
Auto Trait Implementations
impl RefUnwindSafe for PlaybackSpeedFactor
impl Send for PlaybackSpeedFactor
impl Sync for PlaybackSpeedFactor
impl Unpin for PlaybackSpeedFactor
impl UnwindSafe for PlaybackSpeedFactor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more