pub struct BoundedResult<C> {
pub curve: C,
pub deviation_upper_bound: Scalar,
}Expand description
Outcome of a lossy operation: the curve, and the error it introduced.
Fields§
§curve: CThe transformed curve.
deviation_upper_bound: ScalarUpper 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§
Source§impl<C: Clone> Clone for BoundedResult<C>
impl<C: Clone> Clone for BoundedResult<C>
Source§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 moreSource§impl<C: Debug> Debug for BoundedResult<C>
impl<C: Debug> Debug for BoundedResult<C>
Source§impl<C: PartialEq> PartialEq for BoundedResult<C>
impl<C: PartialEq> PartialEq for BoundedResult<C>
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