Struct BoundedResult
pub struct BoundedResult<C> {
pub curve: C,
pub deviation_upper_bound: f64,
}Expand description
Outcome of a lossy operation: the curve, and the error it introduced.
Fields§
§curve: CThe transformed curve.
deviation_upper_bound: f64Upper bound on the deviation from the original, in model units.
Zero means the operation was exact. A caller comparing this against its own budget is the intended use; the operation does not decide whether the error is acceptable.
Trait Implementations§
§impl<C> Clone for BoundedResult<C>where
C: Clone,
impl<C> Clone for BoundedResult<C>where
C: Clone,
§fn clone(&self) -> BoundedResult<C>
fn clone(&self) -> BoundedResult<C>
Returns a copy 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<C> Debug for BoundedResult<C>where
C: Debug,
impl<C> Debug for BoundedResult<C>where
C: Debug,
§impl<C> PartialEq for BoundedResult<C>where
C: PartialEq,
impl<C> PartialEq for BoundedResult<C>where
C: PartialEq,
impl<C> StructuralPartialEq for BoundedResult<C>
Auto Trait Implementations§
impl<C> Freeze for BoundedResult<C>where
C: Freeze,
impl<C> RefUnwindSafe for BoundedResult<C>where
C: RefUnwindSafe,
impl<C> Send for BoundedResult<C>where
C: Send,
impl<C> Sync for BoundedResult<C>where
C: Sync,
impl<C> Unpin for BoundedResult<C>where
C: Unpin,
impl<C> UnwindSafe for BoundedResult<C>where
C: UnwindSafe,
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