pub enum PieceMotion {
Level,
Line {
time: i64,
source_time: i64,
over: i64,
by: i64,
},
Curved {
steepest: f64,
},
}Expand description
How the source time moves over a TimePiece.
Variants§
Level
It stays, steps, or lies outside the source range: there is no sound.
Line
Along a line through source_time at time, moving by ticks every over ticks.
Fields
Curved
Along a curve, read with TimeCurve::position.
Trait Implementations§
Source§impl Clone for PieceMotion
impl Clone for PieceMotion
impl Copy for PieceMotion
Source§impl Debug for PieceMotion
impl Debug for PieceMotion
Source§impl PartialEq for PieceMotion
impl PartialEq for PieceMotion
impl StructuralPartialEq for PieceMotion
Auto Trait Implementations§
impl Forget for PieceMotion
impl Freeze for PieceMotion
impl Move for PieceMotion
impl RefUnwindSafe for PieceMotion
impl Send for PieceMotion
impl Sync for PieceMotion
impl Unpin for PieceMotion
impl UnsafeUnpin for PieceMotion
impl UnwindSafe for PieceMotion
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