pub struct NearestMultiple {
pub multiple: FloatType,
pub error: FloatType,
pub signed_error: FloatType,
}Expand description
The multiple of a unit nearest a value, as nearest_multiple finds
it.
Fields§
§multiple: FloatTypeThe multiple itself.
error: FloatTypeHow far the value is from it, to seven decimals.
signed_error: FloatTypeThe value less the multiple, to seven decimals.
Trait Implementations§
Source§impl Clone for NearestMultiple
impl Clone for NearestMultiple
impl Copy for NearestMultiple
Source§impl Debug for NearestMultiple
impl Debug for NearestMultiple
Source§impl PartialEq for NearestMultiple
impl PartialEq for NearestMultiple
impl StructuralPartialEq for NearestMultiple
Auto Trait Implementations§
impl Forget for NearestMultiple
impl Freeze for NearestMultiple
impl RefUnwindSafe for NearestMultiple
impl Send for NearestMultiple
impl Sync for NearestMultiple
impl Unpin for NearestMultiple
impl UnsafeUnpin for NearestMultiple
impl UnwindSafe for NearestMultiple
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
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