[][src]Struct ukebox::note::Note

pub struct Note {
    pub pitch_class: PitchClass,
    // some fields omitted
}

A note such a C, C# and so on.

Fields

pitch_class: PitchClass

Trait Implementations

impl Clone for Note[src]

impl Copy for Note[src]

impl PartialEq<Note> for Note[src]

fn eq(&self, other: &Self) -> bool[src]

Treat two notes as equal if they are represented by the same symbol. For example, B sharp, C and D double flat are all casually called C.

impl Display for Note[src]

impl Debug for Note[src]

impl FromStr for Note[src]

type Err = ParseNoteError

The associated error which can be returned from parsing.

impl Add<Interval> for Note[src]

type Output = Self

The resulting type after applying the + operator.

fn add(self, interval: Interval) -> Self[src]

Get the next note when adding interval to the current note.

Auto Trait Implementations

impl Send for Note

impl Sync for Note

impl Unpin for Note

impl UnwindSafe for Note

impl RefUnwindSafe for Note

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]