RawPitchClass

Trait RawPitchClass 

Source
pub trait RawPitchClass:
    Send
    + Sync
    + AsRef<str>
    + AsRef<isize>
    + PartialEq<isize>
    + PartialEq<str>
    + Borrow<isize>
    + Debug
    + Display {
    type Tag: Accidental;

    // Required methods
    fn new() -> Self
       where Self: Sized;
    fn name(&self) -> &str;
    fn index(&self) -> isize;
}
Expand description

The RawPitchClass is a sealed trait used to define raw pitch class types.

Required Associated Types§

Required Methods§

Source

fn new() -> Self
where Self: Sized,

Source

fn name(&self) -> &str

returns the name of the pitch class; i.e., “C”, “D”, “E”, etc.

Source

fn index(&self) -> isize

returns the value associated with the pitch class

Implementors§