pub struct Interval {
pub lo: OrdFloat,
pub hi: OrdFloat,
pub err: ErrorInterval,
}Fields§
§lo: OrdFloat§hi: OrdFloat§err: ErrorIntervalImplementations§
Source§impl Interval
impl Interval
pub fn new(prec: u32, lo: f64, hi: f64) -> Interval
pub fn make(lo: Float, hi: Float, err: ErrorInterval) -> Interval
pub fn union(&self, other: &Interval) -> Interval
pub fn neg(&self) -> Interval
pub fn add(&self, other: &Interval) -> Interval
pub fn sub(&self, other: &Interval) -> Interval
pub fn mul(&self, other: &Interval) -> Interval
pub fn get_const(&self) -> Option<Float>
pub fn div(&self, other: &Interval) -> Interval
pub fn round(&self) -> Interval
pub fn ceil(&self) -> Interval
pub fn floor(&self) -> Interval
pub fn trunc(&self) -> Interval
pub fn fabs(&self) -> Interval
pub fn exp(&self) -> Interval
pub fn exp_m1(&self) -> Interval
pub fn exp2(&self) -> Interval
pub fn ln(&self) -> Interval
pub fn log10(&self) -> Interval
pub fn log2(&self) -> Interval
pub fn ln_1p(&self) -> Interval
pub fn sqrt(&self) -> Interval
pub fn cbrt(&self) -> Interval
pub fn hypot(&self, other: &Interval) -> Interval
pub fn contains(&self, value: &Float) -> bool
pub fn split(&self, along: &Float) -> Option<(Interval, Interval)>
pub fn pow(&self, other: &Interval) -> Interval
pub fn fma(&self, other: &Interval, third: &Interval) -> Interval
pub fn cos(&self) -> Interval
pub fn sin(&self) -> Interval
pub fn tan(&self) -> Interval
pub fn atan2(&self, other: &Interval) -> Interval
pub fn cosh(&self) -> Interval
pub fn sinh(&self) -> Interval
pub fn tanh(&self) -> Interval
pub fn asinh(&self) -> Interval
pub fn acosh(&self) -> Interval
pub fn atanh(&self) -> Interval
pub fn asin(&self) -> Interval
pub fn acos(&self) -> Interval
pub fn atan(&self) -> Interval
pub fn fmod_pos(&self, other: &Interval) -> Interval
pub fn fmod(&self, other: &Interval) -> Interval
pub fn remainder_pos(&self, other: &Interval) -> Interval
pub fn remainder(&self, other: &Interval) -> Interval
pub fn erf(&self) -> Interval
pub fn erfc(&self) -> Interval
pub fn cmp(&self, other: &Interval) -> (bool, bool, bool, bool)
pub fn less_than(&self, other: &Interval) -> BooleanInterval
pub fn less_than_or_equal(&self, other: &Interval) -> BooleanInterval
pub fn greater_than(&self, other: &Interval) -> BooleanInterval
pub fn greater_than_or_equal(&self, other: &Interval) -> BooleanInterval
pub fn equal_to(&self, other: &Interval) -> BooleanInterval
pub fn not_equal_to(&self, other: &Interval) -> BooleanInterval
pub fn fmin(&self, other: &Interval) -> Interval
pub fn fmax(&self, other: &Interval) -> Interval
pub fn copysign(&self, other: &Interval) -> Interval
pub fn fdim(&self, other: &Interval) -> Interval
pub fn sort(intervals: Vec<Interval>) -> Vec<Interval>
Trait Implementations§
impl Eq 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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.