pub struct RowSegment { /* private fields */ }Expand description
An order-preserving segment of a tone row plus unordered pitch-set facts.
Implementations§
Source§impl RowSegment
impl RowSegment
Sourcepub const fn source(&self) -> &RowSegmentSource
pub const fn source(&self) -> &RowSegmentSource
Returns how the segment was extracted from its source row.
Sourcepub fn classes(&self) -> &[PitchClass]
pub fn classes(&self) -> &[PitchClass]
Returns the pitch classes in retained presentation order.
Sourcepub const fn mask(&self) -> PitchClassMask
pub const fn mask(&self) -> PitchClassMask
Returns the derived unordered pitch-class mask.
Sourcepub const fn interval_vector(&self) -> IntervalVector
pub const fn interval_vector(&self) -> IntervalVector
Returns the interval-class census of the unordered projection.
Sourcepub fn set_class(&self) -> &SetClass
pub fn set_class(&self) -> &SetClass
Returns the transposition-and-inversion set class of the unordered projection.
Sourcepub const fn forte_label(&self) -> Option<&'static str>
pub const fn forte_label(&self) -> Option<&'static str>
Returns the reused Forte label when the existing naming table has one.
Sourcepub fn ordered_intervals(&self) -> Vec<u8> ⓘ
pub fn ordered_intervals(&self) -> Vec<u8> ⓘ
Returns the directed ordered intervals between adjacent segment members.
Trait Implementations§
Source§impl Clone for RowSegment
impl Clone for RowSegment
Source§fn clone(&self) -> RowSegment
fn clone(&self) -> RowSegment
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 RowSegment
impl Debug for RowSegment
impl Eq for RowSegment
Source§impl PartialEq for RowSegment
impl PartialEq for RowSegment
impl StructuralPartialEq for RowSegment
Auto Trait Implementations§
impl Freeze for RowSegment
impl RefUnwindSafe for RowSegment
impl Send for RowSegment
impl Sync for RowSegment
impl Unpin for RowSegment
impl UnsafeUnpin for RowSegment
impl UnwindSafe for RowSegment
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