pub fn from_diatonic_size(size: usize) -> IntervalSize {
        match size % 7 {
            0 => IntervalSize::Unison,
            1 => IntervalSize::Second,
            2 => IntervalSize::Third,
            3 => IntervalSize::Fourth,
            4 => IntervalSize::Fifth,
            5 => IntervalSize::Sixth,
            6 => IntervalSize::Seventh,
            _ => panic!("Modulo operator is broke"),
        }
    }
/// Construct an `IntervalSize` from a number representing a position in a diatonic scale. A unison is zero
/// and a seventh is six. Numbers outside of the range 0&ndash;6 are supported.
Construct an `IntervalSize` from a number representing a position in a diatonic scale. A unison is zero
and a seventh is six. Numbers outside of the range 0–6 are supported.
Construct an ` IntervalSize ` from a number representing a position in a diatonic scale . A unison is zero and a seventh is six . Numbers outside of the range 0–6 are supported .
pub fn from_diatonic_size(size: usize) -> IntervalSize {
        match size % 7 {
            0 => IntervalSize::Unison,
            1 => IntervalSize::Second,
            2 => IntervalSize::Third,
            3 => IntervalSize::Fourth,
            4 => IntervalSize::Fifth,
            5 => IntervalSize::Sixth,
            6 => IntervalSize::Seventh,
            _ => panic!("Modulo operator is broke"),
        }
    }
pub fn from_diatonic_size ( size : usize ) -> IntervalSize { match size % 7 { 0 => IntervalSize :: Unison , 1 => IntervalSize :: Second , 2 => IntervalSize :: Third , 3 => IntervalSize :: Fourth , 4 => IntervalSize :: Fifth , 5 => IntervalSize :: Sixth , 6 => IntervalSize :: Seventh , _ => panic ! ( " " ) , } }
Construct an `IntervalSize` from a number representing a position in a diatonic scale.
Construct an ` IntervalSize ` from a number representing a position in a diatonic scale .
size
usize