pub struct Year(pub f64);
Expand description
A unit type representing a dimensionless value.
Tuple Fields§
§0: f64
Implementations§
Trait Implementations§
Source§impl AddAssign for Year
impl AddAssign for Year
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreSource§impl ApproxEq for Year
impl ApproxEq for Year
Source§type Margin = F64Margin
type Margin = F64Margin
This type type defines a margin within which two values are to be
considered approximately equal. It must implement
Default
so that
approx_eq()
can be called on unknown types.Source§impl<'de> Deserialize<'de> for Year
impl<'de> Deserialize<'de> for Year
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Div<Dimensionless> for Year
impl Div<Dimensionless> for Year
Source§impl Div<Year> for Money
impl Div<Year> for Money
Source§type Output = MoneyPerYear
type Output = MoneyPerYear
The resulting type after applying the
/
operator.Source§impl Div for Year
impl Div for Year
Source§type Output = Dimensionless
type Output = Dimensionless
The resulting type after applying the
/
operator.Source§impl Mul<Dimensionless> for Year
impl Mul<Dimensionless> for Year
Source§impl Mul<MoneyPerYear> for Year
impl Mul<MoneyPerYear> for Year
Source§impl Mul<Year> for Dimensionless
impl Mul<Year> for Dimensionless
Source§impl Mul<Year> for MoneyPerYear
impl Mul<Year> for MoneyPerYear
Source§impl PartialOrd for Year
impl PartialOrd for Year
Source§impl SubAssign for Year
impl SubAssign for Year
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreimpl Copy for Year
impl StructuralPartialEq for Year
Auto Trait Implementations§
impl Freeze for Year
impl RefUnwindSafe for Year
impl Send for Year
impl Sync for Year
impl Unpin for Year
impl UnwindSafe for Year
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