pub struct Progression(/* private fields */);
Expand description
Represents a chord progression as a sequence of ProgressionElement
s.
Implementations§
Source§impl Progression
impl Progression
Sourcepub fn new(elements: Vec<ProgressionElement>) -> Self
pub fn new(elements: Vec<ProgressionElement>) -> Self
Create a new Progression
from a Vec<ProgressionElement>
.
Sourcepub fn elements(&self) -> &Vec<ProgressionElement>
pub fn elements(&self) -> &Vec<ProgressionElement>
Get a reference to the internal Vec<ProgressionElement>
.
Sourcepub fn elements_mut(&mut self) -> &mut Vec<ProgressionElement>
pub fn elements_mut(&mut self) -> &mut Vec<ProgressionElement>
Get a mutable reference to the internal Vec<ProgressionElement>
.
Trait Implementations§
Source§impl Clone for Progression
impl Clone for Progression
Source§fn clone(&self) -> Progression
fn clone(&self) -> Progression
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Progression
impl Debug for Progression
Source§impl Display for Progression
impl Display for Progression
Source§impl FromStr for Progression
impl FromStr for Progression
Source§impl PartialEq for Progression
impl PartialEq for Progression
impl StructuralPartialEq for Progression
Auto Trait Implementations§
impl Freeze for Progression
impl RefUnwindSafe for Progression
impl Send for Progression
impl Sync for Progression
impl Unpin for Progression
impl UnwindSafe for Progression
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