Enum DurationValue
pub enum DurationValue {
DoubleWhole,
Whole,
Half,
Quarter,
Eighth,
Sixteenth,
ThirtySecond,
SixtyFourth,
OneTwentyEighth,
}Variants§
Implementations§
§impl DurationValue
impl DurationValue
pub const ALL: &'static [DurationValue]
pub const fn as_str(self) -> &'static str
§impl DurationValue
impl DurationValue
pub const fn is_shorter_than_quarter_like(self) -> bool
Trait Implementations§
§impl Clone for DurationValue
impl Clone for DurationValue
§fn clone(&self) -> DurationValue
fn clone(&self) -> DurationValue
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 DurationValue
impl Debug for DurationValue
§impl Display for DurationValue
impl Display for DurationValue
§impl FromStr for DurationValue
impl FromStr for DurationValue
§type Err = RhythmError
type Err = RhythmError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<DurationValue, <DurationValue as FromStr>::Err>
fn from_str( value: &str, ) -> Result<DurationValue, <DurationValue as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for DurationValue
impl Hash for DurationValue
§impl Ord for DurationValue
impl Ord for DurationValue
§impl PartialEq for DurationValue
impl PartialEq for DurationValue
§impl PartialOrd for DurationValue
impl PartialOrd for DurationValue
impl Copy for DurationValue
impl Eq for DurationValue
impl StructuralPartialEq for DurationValue
Auto Trait Implementations§
impl Freeze for DurationValue
impl RefUnwindSafe for DurationValue
impl Send for DurationValue
impl Sync for DurationValue
impl Unpin for DurationValue
impl UnsafeUnpin for DurationValue
impl UnwindSafe for DurationValue
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