pub struct OrderedIntervalString { /* private fields */ }Expand description
The directed ordered intervals between adjacent pitches in source order.
Values are modulo-twelve semitone distances in 0..12, so they preserve
the row’s ordinal contour without collapsing inversional complements.
Implementations§
Source§impl OrderedIntervalString
impl OrderedIntervalString
Sourcepub const fn intervals(&self) -> &[u8; 11]
pub const fn intervals(&self) -> &[u8; 11]
Returns the eleven directed intervals in source order.
Sourcepub const fn under_family(self, family: RowFamily) -> Self
pub const fn under_family(self, family: RowFamily) -> Self
Returns the ordered-interval string implied by a row-family operation.
Prime preserves order and direction, inversion negates every interval, retrograde reverses the order and negates the direction, and retrograde-inversion reverses the order only.
Trait Implementations§
Source§impl Clone for OrderedIntervalString
impl Clone for OrderedIntervalString
Source§fn clone(&self) -> OrderedIntervalString
fn clone(&self) -> OrderedIntervalString
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 moreimpl Copy for OrderedIntervalString
Source§impl Debug for OrderedIntervalString
impl Debug for OrderedIntervalString
impl Eq for OrderedIntervalString
Source§impl Hash for OrderedIntervalString
impl Hash for OrderedIntervalString
Source§impl PartialEq for OrderedIntervalString
impl PartialEq for OrderedIntervalString
impl StructuralPartialEq for OrderedIntervalString
Auto Trait Implementations§
impl Freeze for OrderedIntervalString
impl RefUnwindSafe for OrderedIntervalString
impl Send for OrderedIntervalString
impl Sync for OrderedIntervalString
impl Unpin for OrderedIntervalString
impl UnsafeUnpin for OrderedIntervalString
impl UnwindSafe for OrderedIntervalString
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