pub struct CapacityPerYear(pub f64);Expand description
A basic unit type wrapper around an f64 scalar value.
Tuple Fields§
§0: f64Implementations§
Source§impl CapacityPerYear
impl CapacityPerYear
Sourcepub const EPSILON: CapacityPerYear
pub const EPSILON: CapacityPerYear
Small epsilon constant for this unit type.
Trait Implementations§
Source§impl Add for CapacityPerYear
impl Add for CapacityPerYear
Source§impl AddAssign for CapacityPerYear
impl AddAssign for CapacityPerYear
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl ApproxEq for CapacityPerYear
impl ApproxEq for CapacityPerYear
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 Clone for CapacityPerYear
impl Clone for CapacityPerYear
Source§fn clone(&self) -> CapacityPerYear
fn clone(&self) -> CapacityPerYear
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CapacityPerYear
impl Debug for CapacityPerYear
Source§impl<'de> Deserialize<'de> for CapacityPerYear
impl<'de> Deserialize<'de> for CapacityPerYear
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 Display for CapacityPerYear
impl Display for CapacityPerYear
Source§impl Div<CapacityPerYear> for Capacity
impl Div<CapacityPerYear> for Capacity
Source§impl Div<Dimensionless> for CapacityPerYear
impl Div<Dimensionless> for CapacityPerYear
Source§type Output = CapacityPerYear
type Output = CapacityPerYear
The resulting type after applying the
/ operator.Source§fn div(self, rhs: Dimensionless) -> CapacityPerYear
fn div(self, rhs: Dimensionless) -> CapacityPerYear
Performs the
/ operation. Read moreSource§impl Div for CapacityPerYear
impl Div for CapacityPerYear
Source§type Output = Dimensionless
type Output = Dimensionless
The resulting type after applying the
/ operator.Source§fn div(self, rhs: CapacityPerYear) -> Dimensionless
fn div(self, rhs: CapacityPerYear) -> Dimensionless
Performs the
/ operation. Read moreSource§impl Mul<Capacity> for CapacityPerYear
impl Mul<Capacity> for CapacityPerYear
Source§impl Mul<CapacityPerYear> for Capacity
impl Mul<CapacityPerYear> for Capacity
Source§impl Mul<CapacityPerYear> for Dimensionless
impl Mul<CapacityPerYear> for Dimensionless
Source§type Output = CapacityPerYear
type Output = CapacityPerYear
The resulting type after applying the
* operator.Source§fn mul(self, rhs: CapacityPerYear) -> CapacityPerYear
fn mul(self, rhs: CapacityPerYear) -> CapacityPerYear
Performs the
* operation. Read moreSource§impl Mul<CapacityPerYear> for Year
impl Mul<CapacityPerYear> for Year
Source§impl Mul<Dimensionless> for CapacityPerYear
impl Mul<Dimensionless> for CapacityPerYear
Source§type Output = CapacityPerYear
type Output = CapacityPerYear
The resulting type after applying the
* operator.Source§fn mul(self, rhs: Dimensionless) -> CapacityPerYear
fn mul(self, rhs: Dimensionless) -> CapacityPerYear
Performs the
* operation. Read moreSource§impl Mul<Year> for CapacityPerYear
impl Mul<Year> for CapacityPerYear
Source§impl Neg for CapacityPerYear
impl Neg for CapacityPerYear
Source§type Output = CapacityPerYear
type Output = CapacityPerYear
The resulting type after applying the
- operator.Source§fn neg(self) -> CapacityPerYear
fn neg(self) -> CapacityPerYear
Performs the unary
- operation. Read moreSource§impl PartialEq for CapacityPerYear
impl PartialEq for CapacityPerYear
Source§impl PartialOrd for CapacityPerYear
impl PartialOrd for CapacityPerYear
Source§impl Serialize for CapacityPerYear
impl Serialize for CapacityPerYear
Source§impl Sub for CapacityPerYear
impl Sub for CapacityPerYear
Source§impl SubAssign for CapacityPerYear
impl SubAssign for CapacityPerYear
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreSource§impl Sum for CapacityPerYear
impl Sum for CapacityPerYear
Source§impl UnitType for CapacityPerYear
impl UnitType for CapacityPerYear
impl Copy for CapacityPerYear
impl StructuralPartialEq for CapacityPerYear
Auto Trait Implementations§
impl Freeze for CapacityPerYear
impl RefUnwindSafe for CapacityPerYear
impl Send for CapacityPerYear
impl Sync for CapacityPerYear
impl Unpin for CapacityPerYear
impl UnwindSafe for CapacityPerYear
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