pub enum LoopKind {
None,
Forward,
PingPong,
}Expand description
Loop behaviour for a sample body. Tracker formats share the same three modes — no loop / forward / ping-pong — so we encode them here rather than repeat the enum per format.
Variants§
None
Play once, stop when past end.
Forward
On reaching loop_end, jump back to loop_start.
PingPong
On reaching loop_end, reverse direction. On reaching loop_start while reversed, resume forward.
Trait Implementations§
impl Copy for LoopKind
impl Eq for LoopKind
impl StructuralPartialEq for LoopKind
Auto Trait Implementations§
impl Freeze for LoopKind
impl RefUnwindSafe for LoopKind
impl Send for LoopKind
impl Sync for LoopKind
impl Unpin for LoopKind
impl UnsafeUnpin for LoopKind
impl UnwindSafe for LoopKind
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