pub struct PatternMutatorPlayer {
pub config: PatternMutatorConfig,
}Expand description
Player that applies a PatternMutatorConfig to incoming material.
Fields§
§config: PatternMutatorConfigMutator configuration this player applies.
Implementations§
Source§impl PatternMutatorPlayer
impl PatternMutatorPlayer
Sourcepub fn new(config: PatternMutatorConfig) -> Self
pub fn new(config: PatternMutatorConfig) -> Self
Wraps a mutator configuration in a player.
Sourcepub fn play(&self, input: &dyn MusicObject) -> Result<Music, TransformError>
pub fn play(&self, input: &dyn MusicObject) -> Result<Music, TransformError>
Applies the configured mutation to the input and returns the result.
Trait Implementations§
Source§impl Clone for PatternMutatorPlayer
impl Clone for PatternMutatorPlayer
Source§fn clone(&self) -> PatternMutatorPlayer
fn clone(&self) -> PatternMutatorPlayer
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 PatternMutatorPlayer
impl Debug for PatternMutatorPlayer
impl Eq for PatternMutatorPlayer
Source§impl PartialEq for PatternMutatorPlayer
impl PartialEq for PatternMutatorPlayer
impl StructuralPartialEq for PatternMutatorPlayer
Auto Trait Implementations§
impl Freeze for PatternMutatorPlayer
impl RefUnwindSafe for PatternMutatorPlayer
impl Send for PatternMutatorPlayer
impl Sync for PatternMutatorPlayer
impl Unpin for PatternMutatorPlayer
impl UnsafeUnpin for PatternMutatorPlayer
impl UnwindSafe for PatternMutatorPlayer
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