#[repr(i8)]pub enum Fourth {
Perfect = 5,
}Variants§
Perfect = 5
Implementations§
Source§impl Fourth
impl Fourth
Sourcepub const fn is_perfect(&self) -> bool
pub const fn is_perfect(&self) -> bool
Returns true if the enum is Fourth::Perfect otherwise false
Source§impl Fourth
impl Fourth
pub fn new(src: Note, tgt: Note) -> Result<Self, Error>
pub fn from_i8(value: i8) -> Result<Self, Error>
pub fn into_interval(self) -> Intervals
pub fn interval(&self) -> Intervals
pub fn get(&self) -> i8
pub fn value(&self) -> i8
pub fn validate(value: i8) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fourth
impl<'de> Deserialize<'de> for Fourth
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IntervalKind for Fourth
impl IntervalKind for Fourth
Source§impl Ord for Fourth
impl Ord for Fourth
Source§impl PartialOrd for Fourth
impl PartialOrd for Fourth
Source§impl VariantNames for Fourth
impl VariantNames for Fourth
impl Copy for Fourth
impl Eq for Fourth
impl StructuralPartialEq for Fourth
Auto Trait Implementations§
impl Freeze for Fourth
impl RefUnwindSafe for Fourth
impl Send for Fourth
impl Sync for Fourth
impl Unpin for Fourth
impl UnwindSafe for Fourth
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