pub struct SegmentInvariant {
pub ordinal_identity: bool,
pub pitch_identity: bool,
pub transposition: Option<u8>,
pub inversion: Option<u8>,
pub interval_order_identity: bool,
pub set_class_identity: bool,
}Expand description
Independent invariance facts relating two ordered row segments.
Fields§
§ordinal_identity: boolWhether the compared segments use the same source ordinals in the same order.
pitch_identity: boolWhether the compared segments contain the same pitch classes in the same order.
transposition: Option<u8>Exact Tn preserving the segment’s ordered pitch classes, when present.
inversion: Option<u8>Exact TnI preserving the segment’s ordered pitch classes, when present.
interval_order_identity: boolWhether the directed ordered-interval strings match exactly.
set_class_identity: boolWhether the unordered pitch-class projections share one set class.
Trait Implementations§
Source§impl Clone for SegmentInvariant
impl Clone for SegmentInvariant
Source§fn clone(&self) -> SegmentInvariant
fn clone(&self) -> SegmentInvariant
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 SegmentInvariant
impl Debug for SegmentInvariant
impl Eq for SegmentInvariant
Source§impl PartialEq for SegmentInvariant
impl PartialEq for SegmentInvariant
impl StructuralPartialEq for SegmentInvariant
Auto Trait Implementations§
impl Freeze for SegmentInvariant
impl RefUnwindSafe for SegmentInvariant
impl Send for SegmentInvariant
impl Sync for SegmentInvariant
impl Unpin for SegmentInvariant
impl UnsafeUnpin for SegmentInvariant
impl UnwindSafe for SegmentInvariant
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