Enum SeventhChordKind
pub enum SeventhChordKind {
MajorSeventh,
MinorSeventh,
Dominant,
HalfDiminished,
Diminished,
MinorMajor,
}Variants§
Implementations§
§impl SeventhChordKind
impl SeventhChordKind
pub const ALL: &'static [SeventhChordKind]
pub const fn as_str(self) -> &'static str
§impl SeventhChordKind
impl SeventhChordKind
pub const DOMINANT: SeventhChordKind = Self::Dominant
pub const MAJOR_SEVENTH: SeventhChordKind = Self::MajorSeventh
pub const MINOR_SEVENTH: SeventhChordKind = Self::MinorSeventh
Trait Implementations§
§impl Clone for SeventhChordKind
impl Clone for SeventhChordKind
§fn clone(&self) -> SeventhChordKind
fn clone(&self) -> SeventhChordKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for SeventhChordKind
impl Debug for SeventhChordKind
§impl Display for SeventhChordKind
impl Display for SeventhChordKind
§impl FromStr for SeventhChordKind
impl FromStr for SeventhChordKind
§type Err = ChordError
type Err = ChordError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<SeventhChordKind, <SeventhChordKind as FromStr>::Err>
fn from_str( value: &str, ) -> Result<SeventhChordKind, <SeventhChordKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for SeventhChordKind
impl Hash for SeventhChordKind
§impl Ord for SeventhChordKind
impl Ord for SeventhChordKind
§fn cmp(&self, other: &SeventhChordKind) -> Ordering
fn cmp(&self, other: &SeventhChordKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for SeventhChordKind
impl PartialEq for SeventhChordKind
§impl PartialOrd for SeventhChordKind
impl PartialOrd for SeventhChordKind
impl Copy for SeventhChordKind
impl Eq for SeventhChordKind
impl StructuralPartialEq for SeventhChordKind
Auto Trait Implementations§
impl Freeze for SeventhChordKind
impl RefUnwindSafe for SeventhChordKind
impl Send for SeventhChordKind
impl Sync for SeventhChordKind
impl Unpin for SeventhChordKind
impl UnsafeUnpin for SeventhChordKind
impl UnwindSafe for SeventhChordKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more