[−][src]Enum ukebox::note::StaffPosition
The vertical position of the notehead on the staff (on a line or in a space). We use the staff position of an enharmonic note to decide whether it is sharp or flat.
For example, a note with pitch class FSharp
can either be written as F#
(if its staff position is FPos
or Gb
(if its staff position is GPos
).
https://en.wikipedia.org/wiki/Staff_(music)#Staff_positions
Variants
Trait Implementations
impl Add<u8> for StaffPosition
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, n: u8) -> Self
[src]
Get the staff position that is n
positions higher than the current one.
impl Clone for StaffPosition
[src]
fn clone(&self) -> StaffPosition
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StaffPosition
[src]
impl Debug for StaffPosition
[src]
impl From<u8> for StaffPosition
[src]
impl PartialEq<StaffPosition> for StaffPosition
[src]
fn eq(&self, other: &StaffPosition) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for StaffPosition
[src]
Auto Trait Implementations
impl RefUnwindSafe for StaffPosition
impl Send for StaffPosition
impl Sync for StaffPosition
impl Unpin for StaffPosition
impl UnwindSafe for StaffPosition
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,