pub struct NoteDuration { /* private fields */ }Implementations§
Source§impl NoteDuration
impl NoteDuration
pub const fn new(value: DurationValue) -> Self
pub const fn value(self) -> DurationValue
pub const fn is_rest(self) -> bool
pub const fn is_shorter_than_quarter_like(self) -> bool
Trait Implementations§
Source§impl Clone for NoteDuration
impl Clone for NoteDuration
Source§fn clone(&self) -> NoteDuration
fn clone(&self) -> NoteDuration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoteDuration
impl Debug for NoteDuration
Source§impl Hash for NoteDuration
impl Hash for NoteDuration
Source§impl PartialEq for NoteDuration
impl PartialEq for NoteDuration
Source§fn eq(&self, other: &NoteDuration) -> bool
fn eq(&self, other: &NoteDuration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NoteDuration
impl Eq for NoteDuration
impl StructuralPartialEq for NoteDuration
Auto Trait Implementations§
impl Freeze for NoteDuration
impl RefUnwindSafe for NoteDuration
impl Send for NoteDuration
impl Sync for NoteDuration
impl Unpin for NoteDuration
impl UnsafeUnpin for NoteDuration
impl UnwindSafe for NoteDuration
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