Enum nom_midi::KeySignature [] [src]

pub enum KeySignature {
    CMajor,
    GMajor,
    DMajor,
    AMajor,
    EMajor,
    BMajor,
    FSharpMajor,
    CSharpMajor,
    FMajor,
    BFlatMajor,
    EFlatMajor,
    AFlatMajor,
    DFlatMajor,
    GFlatMajor,
    CFlatMajor,
    AMinor,
    EMinor,
    BMinor,
    FSharpMinor,
    CSharpMinor,
    GSharpMinor,
    DSharpMinor,
    ASharpMinor,
    DMinor,
    GMinor,
    CMinor,
    FMinor,
    BFlatMinor,
    EFlatMinor,
    AFlatMinor,
}

All possible Key Signatures

Variants

Methods

impl KeySignature
[src]

Count the number of sharps or flats

Whether there are sharps or flats

Panics

Panics if there are no sharps or flats. Use count to check this first to avoid

Get a tuple of the number of sharps/flats, and a bool that is true for sharps, false for flats.

The second value is not specified (could be anything) when the first is 0.

Trait Implementations

impl Debug for KeySignature
[src]

Formats the value using the given formatter.

impl PartialEq for KeySignature
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Copy for KeySignature
[src]

impl Clone for KeySignature
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more