pub struct RhythmPattern {
pub hits: Vec<f32>,
pub length: f32,
pub cursor: f32,
pub next: usize,
}Expand description
A repeating rhythmic pattern as beat positions.
Fields§
§hits: Vec<f32>§length: f32§cursor: f32§next: usizeImplementations§
Source§impl RhythmPattern
impl RhythmPattern
Trait Implementations§
Source§impl Clone for RhythmPattern
impl Clone for RhythmPattern
Source§fn clone(&self) -> RhythmPattern
fn clone(&self) -> RhythmPattern
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for RhythmPattern
impl RefUnwindSafe for RhythmPattern
impl Send for RhythmPattern
impl Sync for RhythmPattern
impl Unpin for RhythmPattern
impl UnsafeUnpin for RhythmPattern
impl UnwindSafe for RhythmPattern
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