pub enum StretchPolicy {
None,
TempoRatio(Time),
TimeRatio(Time),
FitToDuration,
}Expand description
Time-scaling policy applied to a placement.
Variants§
None
Leaves timing unchanged.
TempoRatio(Time)
Scales timing by the reciprocal of the given tempo ratio.
TimeRatio(Time)
Scales timing directly by the given time ratio.
FitToDuration
Scales the placement to fill its declared duration.
Trait Implementations§
Source§impl Clone for StretchPolicy
impl Clone for StretchPolicy
Source§fn clone(&self) -> StretchPolicy
fn clone(&self) -> StretchPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StretchPolicy
impl Debug for StretchPolicy
impl Eq for StretchPolicy
Source§impl PartialEq for StretchPolicy
impl PartialEq for StretchPolicy
impl StructuralPartialEq for StretchPolicy
Auto Trait Implementations§
impl Freeze for StretchPolicy
impl RefUnwindSafe for StretchPolicy
impl Send for StretchPolicy
impl Sync for StretchPolicy
impl Unpin for StretchPolicy
impl UnsafeUnpin for StretchPolicy
impl UnwindSafe for StretchPolicy
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