pub struct RetrogradeTransform {
pub mode: RetrogradeMode,
}Expand description
Retrograde transform that reverses material under a RetrogradeMode.
Fields§
§mode: RetrogradeModeMode controlling how reversed notes are placed.
Implementations§
Source§impl RetrogradeTransform
impl RetrogradeTransform
Sourcepub fn new(mode: RetrogradeMode) -> Self
pub fn new(mode: RetrogradeMode) -> Self
Builds a retrograde transform with the given mode.
Sourcepub fn apply(&self, object: &dyn MusicObject) -> Music
pub fn apply(&self, object: &dyn MusicObject) -> Music
Reverses the material and returns the music.
Sourcepub fn apply_report(&self, object: &dyn MusicObject) -> TransformReport
pub fn apply_report(&self, object: &dyn MusicObject) -> TransformReport
Reverses the material, returning a clean report (no diagnostics).
Trait Implementations§
Source§impl Clone for RetrogradeTransform
impl Clone for RetrogradeTransform
Source§fn clone(&self) -> RetrogradeTransform
fn clone(&self) -> RetrogradeTransform
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 RetrogradeTransform
impl Debug for RetrogradeTransform
Source§impl Default for RetrogradeTransform
impl Default for RetrogradeTransform
impl Eq for RetrogradeTransform
Source§impl PartialEq for RetrogradeTransform
impl PartialEq for RetrogradeTransform
Source§fn eq(&self, other: &RetrogradeTransform) -> bool
fn eq(&self, other: &RetrogradeTransform) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RetrogradeTransform
Auto Trait Implementations§
impl Freeze for RetrogradeTransform
impl RefUnwindSafe for RetrogradeTransform
impl Send for RetrogradeTransform
impl Sync for RetrogradeTransform
impl Unpin for RetrogradeTransform
impl UnsafeUnpin for RetrogradeTransform
impl UnwindSafe for RetrogradeTransform
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