pub struct RatioApproximation {
pub ratio: PitchRatio,
pub cents: f64,
pub error_cents: f64,
pub score: i64,
}Expand description
One bounded approximation result.
Fields§
§ratio: PitchRatioCandidate exact ratio.
cents: f64Candidate cents.
error_cents: f64Signed cents error against the target.
score: i64Strategy score used for deterministic ordering.
Trait Implementations§
Source§impl Clone for RatioApproximation
impl Clone for RatioApproximation
Source§fn clone(&self) -> RatioApproximation
fn clone(&self) -> RatioApproximation
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 RatioApproximation
impl Debug for RatioApproximation
Source§impl PartialEq for RatioApproximation
impl PartialEq for RatioApproximation
impl StructuralPartialEq for RatioApproximation
Auto Trait Implementations§
impl Freeze for RatioApproximation
impl RefUnwindSafe for RatioApproximation
impl Send for RatioApproximation
impl Sync for RatioApproximation
impl Unpin for RatioApproximation
impl UnsafeUnpin for RatioApproximation
impl UnwindSafe for RatioApproximation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more