Struct inari::DecInterval
source Β· [−]#[repr(C)]pub struct DecInterval { /* private fields */ }
Expand description
The decorated version of Interval
.
Notes on equality comparison
By definition, a NaI is not equal to itself:
use inari::*;
assert_ne!(DecInterval::NAI, DecInterval::NAI);
For this reason, the traits Eq
and Hash
are not implemented for the type.
Implementations
sourceimpl DecInterval
impl DecInterval
sourcepub fn new(x: Interval) -> Self
pub fn new(x: Interval) -> Self
Creates a DecInterval
from the given interval and the decoration below:
Interval | Decoration |
---|---|
Nonempty and bounded | Decoration::Com |
Unbounded | Decoration::Dac |
Empty | Decoration::Trv |
sourcepub fn set_dec(x: Interval, d: Decoration) -> Self
pub fn set_dec(x: Interval, d: Decoration) -> Self
Creates a DecInterval
from the given interval and decoration.
If the decoration is invalid for the interval, the first one in the list is used:
Interval | Valid decorations |
---|---|
Nonempty and bounded | Decoration::Com , Decoration::Dac , Decoration::Def , Decoration::Trv , Decoration::Ill |
Unbounded | Decoration::Dac , Decoration::Def , Decoration::Trv , Decoration::Ill |
Empty | Decoration::Trv , Decoration::Ill |
sourcepub fn interval(self) -> Option<Interval>
pub fn interval(self) -> Option<Interval>
Returns the interval part of self
if it is not NaI; otherwise, None
.
sourcepub fn decoration(self) -> Decoration
pub fn decoration(self) -> Decoration
Returns the decoration part self
.
sourceimpl DecInterval
impl DecInterval
sourcepub fn abs(self) -> Self
pub fn abs(self) -> Self
The decorated version of Interval::abs
.
A NaI is returned if self
is NaI.
sourcepub fn max(self, rhs: Self) -> Self
pub fn max(self, rhs: Self) -> Self
The decorated version of Interval::max
.
A NaI is returned if self
or rhs
is NaI.
sourcepub fn min(self, rhs: Self) -> Self
pub fn min(self, rhs: Self) -> Self
The decorated version of Interval::min
.
A NaI is returned if self
or rhs
is NaI.
sourceimpl DecInterval
impl DecInterval
sourcepub fn mul_add(self, rhs: Self, addend: Self) -> Self
pub fn mul_add(self, rhs: Self, addend: Self) -> Self
The decorated version of Interval::mul_add
.
A NaI is returned if self
, rhs
or addend
is NaI.
sourcepub fn recip(self) -> Self
pub fn recip(self) -> Self
The decorated version of Interval::recip
.
A NaI is returned if self
is NaI.
sourcepub fn sqr(self) -> Self
pub fn sqr(self) -> Self
The decorated version of Interval::sqr
.
A NaI is returned if self
is NaI.
sourcepub fn sqrt(self) -> Self
pub fn sqrt(self) -> Self
The decorated version of Interval::sqrt
.
A NaI is returned if self
is NaI.
sourceimpl DecInterval
impl DecInterval
sourcepub fn contains(self, rhs: f64) -> bool
pub fn contains(self, rhs: f64) -> bool
Applies Interval::contains
to the interval part of self
and rhs
and returns the result.
false
is returned if self
is NaI.
sourcepub fn disjoint(self, rhs: Self) -> bool
pub fn disjoint(self, rhs: Self) -> bool
Applies Interval::disjoint
to the interval parts of self
and rhs
and returns the result.
false
is returned if self
or rhs
is NaI.
sourcepub fn interior(self, rhs: Self) -> bool
pub fn interior(self, rhs: Self) -> bool
Applies Interval::interior
to the interval parts of self
and rhs
and returns the result.
false
is returned if self
or rhs
is NaI.
sourcepub fn is_common_interval(self) -> bool
pub fn is_common_interval(self) -> bool
Applies Interval::is_common_interval
to the interval part of self
and returns the result.
false
is returned if self
is NaI.
sourcepub fn is_empty(self) -> bool
pub fn is_empty(self) -> bool
Applies Interval::is_empty
to the interval part of self
and returns the result.
false
is returned if self
is NaI.
sourcepub fn is_entire(self) -> bool
pub fn is_entire(self) -> bool
Applies Interval::is_entire
to the interval part of self
and returns the result.
false
is returned if self
is NaI.
sourcepub fn is_singleton(self) -> bool
pub fn is_singleton(self) -> bool
Applies Interval::is_singleton
to the interval part of self
and returns the result.
false
is returned if self
is NaI.
sourcepub fn less(self, rhs: Self) -> bool
pub fn less(self, rhs: Self) -> bool
Applies Interval::less
to the interval parts of self
and rhs
and returns the result.
false
is returned if self
or rhs
is NaI.
sourcepub fn precedes(self, rhs: Self) -> bool
pub fn precedes(self, rhs: Self) -> bool
Applies Interval::precedes
to the interval parts of self
and rhs
and returns the result.
false
is returned if self
or rhs
is NaI.
sourcepub fn strict_less(self, rhs: Self) -> bool
pub fn strict_less(self, rhs: Self) -> bool
Applies Interval::strict_less
to the interval parts of self
and rhs
and returns the result.
false
is returned if self
or rhs
is NaI.
sourcepub fn strict_precedes(self, rhs: Self) -> bool
pub fn strict_precedes(self, rhs: Self) -> bool
Applies Interval::strict_precedes
to the interval parts of self
and rhs
and returns the result.
false
is returned if self
or rhs
is NaI.
sourcepub fn subset(self, rhs: Self) -> bool
pub fn subset(self, rhs: Self) -> bool
Applies Interval::subset
to the interval parts of self
and rhs
and returns the result.
false
is returned if self
or rhs
is NaI.
sourceimpl DecInterval
impl DecInterval
sourcepub fn to_be_bytes(self) -> [u8; 17]
pub fn to_be_bytes(self) -> [u8; 17]
Returns the interchange representation of self
in the big-endian byte order.
sourcepub fn to_le_bytes(self) -> [u8; 17]
pub fn to_le_bytes(self) -> [u8; 17]
Returns the interchange representation of self
in the little-endian byte order.
sourcepub fn to_ne_bytes(self) -> [u8; 17]
pub fn to_ne_bytes(self) -> [u8; 17]
Returns the interchange representation of self
in the native byte order of the target platform.
sourcepub fn try_from_be_bytes(bytes: [u8; 17]) -> Option<Self>
pub fn try_from_be_bytes(bytes: [u8; 17]) -> Option<Self>
Creates a DecInterval
from its interchange representation in the big-endian byte order.
sourcepub fn try_from_le_bytes(bytes: [u8; 17]) -> Option<Self>
pub fn try_from_le_bytes(bytes: [u8; 17]) -> Option<Self>
Creates a DecInterval
from its interchange representation in the little-endian byte order.
sourcepub fn try_from_ne_bytes(bytes: [u8; 17]) -> Option<Self>
pub fn try_from_ne_bytes(bytes: [u8; 17]) -> Option<Self>
Creates a DecInterval
from its interchange representation in the native byte order of the target platform.
sourceimpl DecInterval
impl DecInterval
sourcepub const EMPTY: Self
pub const EMPTY: Self
$β
$, the empty set, decorated with Decoration::Trv
.
sourcepub const ENTIRE: Self
pub const ENTIRE: Self
$[-β, +β]$ decorated with Decoration::Dac
.
sourcepub const E: Self
pub const E: Self
Interval::E
decorated with Decoration::Com
.
sourcepub const FRAC_1_PI: Self
pub const FRAC_1_PI: Self
Interval::FRAC_1_PI
decorated with Decoration::Com
.
sourcepub const FRAC_1_SQRT_2: Self
pub const FRAC_1_SQRT_2: Self
Interval::FRAC_1_SQRT_2
decorated with Decoration::Com
.
sourcepub const FRAC_2_PI: Self
pub const FRAC_2_PI: Self
Interval::FRAC_2_PI
decorated with Decoration::Com
.
sourcepub const FRAC_2_SQRT_PI: Self
pub const FRAC_2_SQRT_PI: Self
Interval::FRAC_2_SQRT_PI
decorated with Decoration::Com
.
sourcepub const FRAC_PI_2: Self
pub const FRAC_PI_2: Self
Interval::FRAC_PI_2
decorated with Decoration::Com
.
sourcepub const FRAC_PI_3: Self
pub const FRAC_PI_3: Self
Interval::FRAC_PI_3
decorated with Decoration::Com
.
sourcepub const FRAC_PI_4: Self
pub const FRAC_PI_4: Self
Interval::FRAC_PI_4
decorated with Decoration::Com
.
sourcepub const FRAC_PI_6: Self
pub const FRAC_PI_6: Self
Interval::FRAC_PI_6
decorated with Decoration::Com
.
sourcepub const FRAC_PI_8: Self
pub const FRAC_PI_8: Self
Interval::FRAC_PI_8
decorated with Decoration::Com
.
sourcepub const LN_10: Self
pub const LN_10: Self
Interval::LN_10
decorated with Decoration::Com
.
sourcepub const LN_2: Self
pub const LN_2: Self
Interval::LN_2
decorated with Decoration::Com
.
sourcepub const LOG10_2: Self
pub const LOG10_2: Self
Interval::LOG10_2
decorated with Decoration::Com
.
sourcepub const LOG10_E: Self
pub const LOG10_E: Self
Interval::LOG10_E
decorated with Decoration::Com
.
sourcepub const LOG2_10: Self
pub const LOG2_10: Self
Interval::LOG2_10
decorated with Decoration::Com
.
sourcepub const LOG2_E: Self
pub const LOG2_E: Self
Interval::LOG2_E
decorated with Decoration::Com
.
sourcepub const PI: Self
pub const PI: Self
Interval::PI
decorated with Decoration::Com
.
sourcepub const SQRT_2: Self
pub const SQRT_2: Self
Interval::SQRT_2
decorated with Decoration::Com
.
sourcepub const TAU: Self
pub const TAU: Self
Interval::TAU
decorated with Decoration::Com
.
sourceimpl DecInterval
impl DecInterval
sourcepub fn acos(self) -> Self
pub fn acos(self) -> Self
The decorated version of Interval::acos
.
A NaI is returned if self
is NaI.
sourcepub fn acosh(self) -> Self
pub fn acosh(self) -> Self
The decorated version of Interval::acosh
.
A NaI is returned if self
is NaI.
sourcepub fn asin(self) -> Self
pub fn asin(self) -> Self
The decorated version of Interval::asin
.
A NaI is returned if self
is NaI.
sourcepub fn asinh(self) -> Self
pub fn asinh(self) -> Self
The decorated version of Interval::asinh
.
A NaI is returned if self
is NaI.
sourcepub fn atan(self) -> Self
pub fn atan(self) -> Self
The decorated version of Interval::atan
.
A NaI is returned if self
is NaI.
sourcepub fn atan2(self, rhs: Self) -> Self
pub fn atan2(self, rhs: Self) -> Self
The decorated version of Interval::atan2
.
A NaI is returned if self
or rhs
is NaI.
sourcepub fn atanh(self) -> Self
pub fn atanh(self) -> Self
The decorated version of Interval::atanh
.
A NaI is returned if self
is NaI.
sourcepub fn cos(self) -> Self
pub fn cos(self) -> Self
The decorated version of Interval::cos
.
A NaI is returned if self
is NaI.
sourcepub fn cosh(self) -> Self
pub fn cosh(self) -> Self
The decorated version of Interval::cosh
.
A NaI is returned if self
is NaI.
sourcepub fn exp(self) -> Self
pub fn exp(self) -> Self
The decorated version of Interval::exp
.
A NaI is returned if self
is NaI.
sourcepub fn exp10(self) -> Self
pub fn exp10(self) -> Self
The decorated version of Interval::exp10
.
A NaI is returned if self
is NaI.
sourcepub fn exp2(self) -> Self
pub fn exp2(self) -> Self
The decorated version of Interval::exp2
.
A NaI is returned if self
is NaI.
sourcepub fn ln(self) -> Self
pub fn ln(self) -> Self
The decorated version of Interval::ln
.
A NaI is returned if self
is NaI.
sourcepub fn log10(self) -> Self
pub fn log10(self) -> Self
The decorated version of Interval::log10
.
A NaI is returned if self
is NaI.
sourcepub fn log2(self) -> Self
pub fn log2(self) -> Self
The decorated version of Interval::log2
.
A NaI is returned if self
is NaI.
sourcepub fn pow(self, rhs: Self) -> Self
pub fn pow(self, rhs: Self) -> Self
The decorated version of Interval::pow
.
A NaI is returned if self
or rhs
is NaI.
sourcepub fn powi(self, rhs: i32) -> Self
pub fn powi(self, rhs: i32) -> Self
The decorated version of Interval::powi
.
A NaI is returned if self
is NaI.
sourcepub fn sin(self) -> Self
pub fn sin(self) -> Self
The decorated version of Interval::sin
.
A NaI is returned if self
is NaI.
sourcepub fn sinh(self) -> Self
pub fn sinh(self) -> Self
The decorated version of Interval::sinh
.
A NaI is returned if self
is NaI.
sourcepub fn tan(self) -> Self
pub fn tan(self) -> Self
The decorated version of Interval::tan
.
A NaI is returned if self
is NaI.
sourcepub fn tanh(self) -> Self
pub fn tanh(self) -> Self
The decorated version of Interval::tanh
.
A NaI is returned if self
is NaI.
sourceimpl DecInterval
impl DecInterval
sourcepub fn ceil(self) -> Self
pub fn ceil(self) -> Self
The decorated version of Interval::ceil
.
A NaI is returned if self
is NaI.
sourcepub fn floor(self) -> Self
pub fn floor(self) -> Self
The decorated version of Interval::floor
.
A NaI is returned if self
is NaI.
sourcepub fn round(self) -> Self
pub fn round(self) -> Self
The decorated version of Interval::round
.
A NaI is returned if self
is NaI.
sourcepub fn round_ties_to_even(self) -> Self
pub fn round_ties_to_even(self) -> Self
The decorated version of Interval::round_ties_to_even
.
A NaI is returned if self
is NaI.
sourcepub fn sign(self) -> Self
pub fn sign(self) -> Self
The decorated version of Interval::sign
.
A NaI is returned if self
is NaI.
sourcepub fn trunc(self) -> Self
pub fn trunc(self) -> Self
The decorated version of Interval::trunc
.
A NaI is returned if self
is NaI.
sourceimpl DecInterval
impl DecInterval
sourcepub fn inf(self) -> f64
pub fn inf(self) -> f64
Applies Interval::inf
to the interval part of self
and returns the result.
A NaN is returned if self
is NaI.
sourcepub fn mag(self) -> f64
pub fn mag(self) -> f64
Applies Interval::mag
to the interval part of self
and returns the result.
A NaN is returned if self
is NaI.
sourcepub fn mid(self) -> f64
pub fn mid(self) -> f64
Applies Interval::mid
to the interval part of self
and returns the result.
A NaN is returned if self
is NaI.
sourcepub fn mig(self) -> f64
pub fn mig(self) -> f64
Applies Interval::mig
to the interval part of self
and returns the result.
A NaN is returned if self
is NaI.
sourcepub fn rad(self) -> f64
pub fn rad(self) -> f64
Applies Interval::rad
to the interval part of self
and returns the result.
A NaN is returned if self
is NaI.
sourcepub fn sup(self) -> f64
pub fn sup(self) -> f64
Applies Interval::sup
to the interval part of self
and returns the result.
A NaN is returned if self
is NaI.
sourcepub fn wid(self) -> f64
pub fn wid(self) -> f64
Applies Interval::wid
to the interval part of self
and returns the result.
A NaN is returned if self
is NaI.
sourceimpl DecInterval
impl DecInterval
sourceimpl DecInterval
impl DecInterval
sourcepub fn convex_hull(self, rhs: Self) -> Self
pub fn convex_hull(self, rhs: Self) -> Self
Applies Interval::convex_hull
to the interval parts of self
and rhs
and returns the result decorated with Decoration::Trv
.
A NaI is returned if self
or rhs
is NaI.
sourcepub fn intersection(self, rhs: Self) -> Self
pub fn intersection(self, rhs: Self) -> Self
Applies Interval::intersection
to the interval parts of self
and rhs
and returns the result decorated with Decoration::Trv
.
A NaI is returned if self
or rhs
is NaI.
Trait Implementations
sourceimpl Add<&'_ DecInterval> for DecInterval
impl Add<&'_ DecInterval> for DecInterval
type Output = <DecInterval as Add<DecInterval>>::Output
type Output = <DecInterval as Add<DecInterval>>::Output
The resulting type after applying the +
operator.
sourcefn add(self, other: &DecInterval) -> <DecInterval as Add<DecInterval>>::Output
fn add(self, other: &DecInterval) -> <DecInterval as Add<DecInterval>>::Output
Performs the +
operation. Read more
sourceimpl Add<&'_ DecInterval> for &DecInterval
impl Add<&'_ DecInterval> for &DecInterval
type Output = <DecInterval as Add<DecInterval>>::Output
type Output = <DecInterval as Add<DecInterval>>::Output
The resulting type after applying the +
operator.
sourcefn add(self, other: &DecInterval) -> <DecInterval as Add<DecInterval>>::Output
fn add(self, other: &DecInterval) -> <DecInterval as Add<DecInterval>>::Output
Performs the +
operation. Read more
sourceimpl Add<DecInterval> for DecInterval
impl Add<DecInterval> for DecInterval
sourceimpl<'a> Add<DecInterval> for &'a DecInterval
impl<'a> Add<DecInterval> for &'a DecInterval
type Output = <DecInterval as Add<DecInterval>>::Output
type Output = <DecInterval as Add<DecInterval>>::Output
The resulting type after applying the +
operator.
sourcefn add(self, other: DecInterval) -> <DecInterval as Add<DecInterval>>::Output
fn add(self, other: DecInterval) -> <DecInterval as Add<DecInterval>>::Output
Performs the +
operation. Read more
sourceimpl AddAssign<&'_ DecInterval> for DecInterval
impl AddAssign<&'_ DecInterval> for DecInterval
sourcefn add_assign(&mut self, other: &DecInterval)
fn add_assign(&mut self, other: &DecInterval)
Performs the +=
operation. Read more
sourceimpl AddAssign<DecInterval> for DecInterval
impl AddAssign<DecInterval> for DecInterval
sourcefn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the +=
operation. Read more
sourceimpl Clone for DecInterval
impl Clone for DecInterval
sourcefn clone(&self) -> DecInterval
fn clone(&self) -> DecInterval
Returns a copy of the value. Read more
1.0.0 Β· sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DecInterval
impl Debug for DecInterval
sourceimpl Display for DecInterval
impl Display for DecInterval
sourceimpl Div<&'_ DecInterval> for DecInterval
impl Div<&'_ DecInterval> for DecInterval
type Output = <DecInterval as Div<DecInterval>>::Output
type Output = <DecInterval as Div<DecInterval>>::Output
The resulting type after applying the /
operator.
sourcefn div(self, other: &DecInterval) -> <DecInterval as Div<DecInterval>>::Output
fn div(self, other: &DecInterval) -> <DecInterval as Div<DecInterval>>::Output
Performs the /
operation. Read more
sourceimpl Div<&'_ DecInterval> for &DecInterval
impl Div<&'_ DecInterval> for &DecInterval
type Output = <DecInterval as Div<DecInterval>>::Output
type Output = <DecInterval as Div<DecInterval>>::Output
The resulting type after applying the /
operator.
sourcefn div(self, other: &DecInterval) -> <DecInterval as Div<DecInterval>>::Output
fn div(self, other: &DecInterval) -> <DecInterval as Div<DecInterval>>::Output
Performs the /
operation. Read more
sourceimpl Div<DecInterval> for DecInterval
impl Div<DecInterval> for DecInterval
sourceimpl<'a> Div<DecInterval> for &'a DecInterval
impl<'a> Div<DecInterval> for &'a DecInterval
type Output = <DecInterval as Div<DecInterval>>::Output
type Output = <DecInterval as Div<DecInterval>>::Output
The resulting type after applying the /
operator.
sourcefn div(self, other: DecInterval) -> <DecInterval as Div<DecInterval>>::Output
fn div(self, other: DecInterval) -> <DecInterval as Div<DecInterval>>::Output
Performs the /
operation. Read more
sourceimpl DivAssign<&'_ DecInterval> for DecInterval
impl DivAssign<&'_ DecInterval> for DecInterval
sourcefn div_assign(&mut self, other: &DecInterval)
fn div_assign(&mut self, other: &DecInterval)
Performs the /=
operation. Read more
sourceimpl DivAssign<DecInterval> for DecInterval
impl DivAssign<DecInterval> for DecInterval
sourcefn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the /=
operation. Read more
sourceimpl FromStr for DecInterval
impl FromStr for DecInterval
sourceimpl LowerExp for DecInterval
impl LowerExp for DecInterval
sourceimpl LowerHex for DecInterval
impl LowerHex for DecInterval
sourceimpl Mul<&'_ DecInterval> for DecInterval
impl Mul<&'_ DecInterval> for DecInterval
type Output = <DecInterval as Mul<DecInterval>>::Output
type Output = <DecInterval as Mul<DecInterval>>::Output
The resulting type after applying the *
operator.
sourcefn mul(self, other: &DecInterval) -> <DecInterval as Mul<DecInterval>>::Output
fn mul(self, other: &DecInterval) -> <DecInterval as Mul<DecInterval>>::Output
Performs the *
operation. Read more
sourceimpl Mul<&'_ DecInterval> for &DecInterval
impl Mul<&'_ DecInterval> for &DecInterval
type Output = <DecInterval as Mul<DecInterval>>::Output
type Output = <DecInterval as Mul<DecInterval>>::Output
The resulting type after applying the *
operator.
sourcefn mul(self, other: &DecInterval) -> <DecInterval as Mul<DecInterval>>::Output
fn mul(self, other: &DecInterval) -> <DecInterval as Mul<DecInterval>>::Output
Performs the *
operation. Read more
sourceimpl Mul<DecInterval> for DecInterval
impl Mul<DecInterval> for DecInterval
sourceimpl<'a> Mul<DecInterval> for &'a DecInterval
impl<'a> Mul<DecInterval> for &'a DecInterval
type Output = <DecInterval as Mul<DecInterval>>::Output
type Output = <DecInterval as Mul<DecInterval>>::Output
The resulting type after applying the *
operator.
sourcefn mul(self, other: DecInterval) -> <DecInterval as Mul<DecInterval>>::Output
fn mul(self, other: DecInterval) -> <DecInterval as Mul<DecInterval>>::Output
Performs the *
operation. Read more
sourceimpl MulAssign<&'_ DecInterval> for DecInterval
impl MulAssign<&'_ DecInterval> for DecInterval
sourcefn mul_assign(&mut self, other: &DecInterval)
fn mul_assign(&mut self, other: &DecInterval)
Performs the *=
operation. Read more
sourceimpl MulAssign<DecInterval> for DecInterval
impl MulAssign<DecInterval> for DecInterval
sourcefn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the *=
operation. Read more
sourceimpl Neg for DecInterval
impl Neg for DecInterval
sourceimpl Neg for &DecInterval
impl Neg for &DecInterval
type Output = <DecInterval as Neg>::Output
type Output = <DecInterval as Neg>::Output
The resulting type after applying the -
operator.
sourceimpl PartialEq<DecInterval> for DecInterval
impl PartialEq<DecInterval> for DecInterval
sourceimpl Sub<&'_ DecInterval> for DecInterval
impl Sub<&'_ DecInterval> for DecInterval
type Output = <DecInterval as Sub<DecInterval>>::Output
type Output = <DecInterval as Sub<DecInterval>>::Output
The resulting type after applying the -
operator.
sourcefn sub(self, other: &DecInterval) -> <DecInterval as Sub<DecInterval>>::Output
fn sub(self, other: &DecInterval) -> <DecInterval as Sub<DecInterval>>::Output
Performs the -
operation. Read more
sourceimpl Sub<&'_ DecInterval> for &DecInterval
impl Sub<&'_ DecInterval> for &DecInterval
type Output = <DecInterval as Sub<DecInterval>>::Output
type Output = <DecInterval as Sub<DecInterval>>::Output
The resulting type after applying the -
operator.
sourcefn sub(self, other: &DecInterval) -> <DecInterval as Sub<DecInterval>>::Output
fn sub(self, other: &DecInterval) -> <DecInterval as Sub<DecInterval>>::Output
Performs the -
operation. Read more
sourceimpl Sub<DecInterval> for DecInterval
impl Sub<DecInterval> for DecInterval
sourceimpl<'a> Sub<DecInterval> for &'a DecInterval
impl<'a> Sub<DecInterval> for &'a DecInterval
type Output = <DecInterval as Sub<DecInterval>>::Output
type Output = <DecInterval as Sub<DecInterval>>::Output
The resulting type after applying the -
operator.
sourcefn sub(self, other: DecInterval) -> <DecInterval as Sub<DecInterval>>::Output
fn sub(self, other: DecInterval) -> <DecInterval as Sub<DecInterval>>::Output
Performs the -
operation. Read more
sourceimpl SubAssign<&'_ DecInterval> for DecInterval
impl SubAssign<&'_ DecInterval> for DecInterval
sourcefn sub_assign(&mut self, other: &DecInterval)
fn sub_assign(&mut self, other: &DecInterval)
Performs the -=
operation. Read more
sourceimpl SubAssign<DecInterval> for DecInterval
impl SubAssign<DecInterval> for DecInterval
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the -=
operation. Read more
impl Copy for DecInterval
Auto Trait Implementations
impl RefUnwindSafe for DecInterval
impl Send for DecInterval
impl Sync for DecInterval
impl Unpin for DecInterval
impl UnwindSafe for DecInterval
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable Β· sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedAs for T
impl<T> CheckedAs for T
sourcepub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
Casts the value.
sourceimpl<T> OverflowingAs for T
impl<T> OverflowingAs for T
sourcepub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
Casts the value.
sourceimpl<T> SaturatingAs for T
impl<T> SaturatingAs for T
sourcepub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
Casts the value.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
sourcepub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
Casts the value.
sourceimpl<T> WrappingAs for T
impl<T> WrappingAs for T
sourcepub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
Casts the value.