pub struct Interval { /* private fields */ }Expand description
A closed interval [lo, hi] known to contain the true value.
Implementations§
Source§impl Interval
impl Interval
Sourcepub fn point(value: f64) -> Self
pub fn point(value: f64) -> Self
The degenerate interval [value, value], exact for finite input.
Sourcepub fn quotient(self, divisor: Self) -> Self
pub fn quotient(self, divisor: Self) -> Self
A sound enclosure of self / divisor, or Interval::WHOLE when
the divisor may be zero.
Each bound is one IEEE division (correctly rounded), widened one
step outward. Lets callers keep a cheap per-point box for values of
the form numerator / weight.
Trait Implementations§
Source§impl Arith for Interval
impl Arith for Interval
Source§fn from_dyadic(value: &Dyadic) -> Self
fn from_dyadic(value: &Dyadic) -> Self
The value of an exact dyadic number: itself in the exact tier, a
sound enclosure in the interval tier (
Dyadic::enclosure). Read moreSource§fn sign(&self) -> Option<Sign>
fn sign(&self) -> Option<Sign>
The sign, or
None when this arithmetic cannot decide it. Read moreSource§fn sqrt_enclosure(&self) -> Option<Self>
fn sqrt_enclosure(&self) -> Option<Self>
An enclosure of
sqrt(self), for approximate arithmetics only. Read moreimpl Copy for Interval
impl StructuralPartialEq for Interval
Auto Trait Implementations§
impl Freeze for Interval
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnwindSafe for Interval
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