pub struct ReferencePitch(/* private fields */);Implementations§
Source§impl ReferencePitch
impl ReferencePitch
pub fn new(value: f64) -> Result<ReferencePitch, TuningError>
pub const fn value(self) -> f64
Trait Implementations§
Source§impl Clone for ReferencePitch
impl Clone for ReferencePitch
Source§fn clone(&self) -> ReferencePitch
fn clone(&self) -> ReferencePitch
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 ReferencePitch
impl Debug for ReferencePitch
Source§impl Display for ReferencePitch
impl Display for ReferencePitch
Source§impl FromStr for ReferencePitch
impl FromStr for ReferencePitch
Source§type Err = TuningError
type Err = TuningError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<ReferencePitch, <ReferencePitch as FromStr>::Err>
fn from_str( value: &str, ) -> Result<ReferencePitch, <ReferencePitch as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl PartialEq for ReferencePitch
impl PartialEq for ReferencePitch
Source§fn eq(&self, other: &ReferencePitch) -> bool
fn eq(&self, other: &ReferencePitch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ReferencePitch
impl PartialOrd for ReferencePitch
Source§impl TryFrom<f64> for ReferencePitch
impl TryFrom<f64> for ReferencePitch
Source§type Error = TuningError
type Error = TuningError
The type returned in the event of a conversion error.
Source§fn try_from(
value: f64,
) -> Result<ReferencePitch, <ReferencePitch as TryFrom<f64>>::Error>
fn try_from( value: f64, ) -> Result<ReferencePitch, <ReferencePitch as TryFrom<f64>>::Error>
Performs the conversion.
impl Copy for ReferencePitch
impl StructuralPartialEq for ReferencePitch
Auto Trait Implementations§
impl Freeze for ReferencePitch
impl RefUnwindSafe for ReferencePitch
impl Send for ReferencePitch
impl Sync for ReferencePitch
impl Unpin for ReferencePitch
impl UnsafeUnpin for ReferencePitch
impl UnwindSafe for ReferencePitch
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