pub struct Year(pub f64);Expand description
A unit type representing a dimensionless value.
Tuple Fields§
§0: f64Implementations§
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<Year> for MoneyPerCapacity
impl Div<Year> for MoneyPerCapacity
Source§type Output = MoneyPerCapacityPerYear
type Output = MoneyPerCapacityPerYear
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<MoneyPerCapacityPerYear> for Year
impl Mul<MoneyPerCapacityPerYear> for Year
Source§type Output = MoneyPerCapacity
type Output = MoneyPerCapacity
The resulting type after applying the
* operator.Source§fn mul(self, by: MoneyPerCapacityPerYear) -> MoneyPerCapacity
fn mul(self, by: MoneyPerCapacityPerYear) -> MoneyPerCapacity
Performs the
* operation. Read moreSource§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 MoneyPerCapacityPerYear
impl Mul<Year> for MoneyPerCapacityPerYear
Source§type Output = MoneyPerCapacity
type Output = MoneyPerCapacity
The resulting type after applying the
* operator.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