pub struct Dimensionless(pub f64);
Expand description
A unit type representing a dimensionless value.
Tuple Fields§
§0: f64
Implementations§
Source§impl Dimensionless
impl Dimensionless
Trait Implementations§
Source§impl Add for Dimensionless
impl Add for Dimensionless
Source§type Output = Dimensionless
type Output = Dimensionless
The resulting type after applying the
+
operator.Source§fn add(self, rhs: Dimensionless) -> Dimensionless
fn add(self, rhs: Dimensionless) -> Dimensionless
Performs the
+
operation. Read moreSource§impl AddAssign for Dimensionless
impl AddAssign for Dimensionless
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreSource§impl ApproxEq for Dimensionless
impl ApproxEq for Dimensionless
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 Dimensionless
impl Clone for Dimensionless
Source§fn clone(&self) -> Dimensionless
fn clone(&self) -> Dimensionless
Returns a copy 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 Dimensionless
impl Debug for Dimensionless
Source§impl<'de> Deserialize<'de> for Dimensionless
impl<'de> Deserialize<'de> for Dimensionless
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 Dimensionless
impl Display for Dimensionless
Source§impl Div<Dimensionless> for Activity
impl Div<Dimensionless> for Activity
Source§impl Div<Dimensionless> for ActivityPerCapacity
impl Div<Dimensionless> for ActivityPerCapacity
Source§type Output = ActivityPerCapacity
type Output = ActivityPerCapacity
The resulting type after applying the
/
operator.Source§fn div(self, rhs: Dimensionless) -> ActivityPerCapacity
fn div(self, rhs: Dimensionless) -> ActivityPerCapacity
Performs the
/
operation. Read moreSource§impl Div<Dimensionless> for Capacity
impl Div<Dimensionless> for Capacity
Source§impl Div<Dimensionless> for Flow
impl Div<Dimensionless> for Flow
Source§impl Div<Dimensionless> for FlowPerActivity
impl Div<Dimensionless> for FlowPerActivity
Source§type Output = FlowPerActivity
type Output = FlowPerActivity
The resulting type after applying the
/
operator.Source§fn div(self, rhs: Dimensionless) -> FlowPerActivity
fn div(self, rhs: Dimensionless) -> FlowPerActivity
Performs the
/
operation. Read moreSource§impl Div<Dimensionless> for Money
impl Div<Dimensionless> for Money
Source§impl Div<Dimensionless> for MoneyPerActivity
impl Div<Dimensionless> for MoneyPerActivity
Source§type Output = MoneyPerActivity
type Output = MoneyPerActivity
The resulting type after applying the
/
operator.Source§fn div(self, rhs: Dimensionless) -> MoneyPerActivity
fn div(self, rhs: Dimensionless) -> MoneyPerActivity
Performs the
/
operation. Read moreSource§impl Div<Dimensionless> for MoneyPerCapacity
impl Div<Dimensionless> for MoneyPerCapacity
Source§type Output = MoneyPerCapacity
type Output = MoneyPerCapacity
The resulting type after applying the
/
operator.Source§fn div(self, rhs: Dimensionless) -> MoneyPerCapacity
fn div(self, rhs: Dimensionless) -> MoneyPerCapacity
Performs the
/
operation. Read moreSource§impl Div<Dimensionless> for MoneyPerCapacityPerYear
impl Div<Dimensionless> for MoneyPerCapacityPerYear
Source§type Output = MoneyPerCapacityPerYear
type Output = MoneyPerCapacityPerYear
The resulting type after applying the
/
operator.Source§fn div(self, rhs: Dimensionless) -> MoneyPerCapacityPerYear
fn div(self, rhs: Dimensionless) -> MoneyPerCapacityPerYear
Performs the
/
operation. Read moreSource§impl Div<Dimensionless> for MoneyPerFlow
impl Div<Dimensionless> for MoneyPerFlow
Source§type Output = MoneyPerFlow
type Output = MoneyPerFlow
The resulting type after applying the
/
operator.Source§fn div(self, rhs: Dimensionless) -> MoneyPerFlow
fn div(self, rhs: Dimensionless) -> MoneyPerFlow
Performs the
/
operation. Read moreSource§impl Div<Dimensionless> for MoneyPerYear
impl Div<Dimensionless> for MoneyPerYear
Source§type Output = MoneyPerYear
type Output = MoneyPerYear
The resulting type after applying the
/
operator.Source§fn div(self, rhs: Dimensionless) -> MoneyPerYear
fn div(self, rhs: Dimensionless) -> MoneyPerYear
Performs the
/
operation. Read moreSource§impl Div<Dimensionless> for Year
impl Div<Dimensionless> for Year
Source§impl Div for Dimensionless
impl Div for Dimensionless
Source§type Output = Dimensionless
type Output = Dimensionless
The resulting type after applying the
/
operator.Source§fn div(self, rhs: Dimensionless) -> Dimensionless
fn div(self, rhs: Dimensionless) -> Dimensionless
Performs the
/
operation. Read moreSource§impl From<Dimensionless> for f64
impl From<Dimensionless> for f64
Source§fn from(val: Dimensionless) -> Self
fn from(val: Dimensionless) -> Self
Converts to this type from the input type.
Source§impl From<f64> for Dimensionless
impl From<f64> for Dimensionless
Source§impl Mul<Activity> for Dimensionless
impl Mul<Activity> for Dimensionless
Source§impl Mul<ActivityPerCapacity> for Dimensionless
impl Mul<ActivityPerCapacity> for Dimensionless
Source§type Output = ActivityPerCapacity
type Output = ActivityPerCapacity
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: ActivityPerCapacity) -> ActivityPerCapacity
fn mul(self, rhs: ActivityPerCapacity) -> ActivityPerCapacity
Performs the
*
operation. Read moreSource§impl Mul<Capacity> for Dimensionless
impl Mul<Capacity> for Dimensionless
Source§impl Mul<Dimensionless> for Activity
impl Mul<Dimensionless> for Activity
Source§impl Mul<Dimensionless> for ActivityPerCapacity
impl Mul<Dimensionless> for ActivityPerCapacity
Source§type Output = ActivityPerCapacity
type Output = ActivityPerCapacity
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Dimensionless) -> ActivityPerCapacity
fn mul(self, rhs: Dimensionless) -> ActivityPerCapacity
Performs the
*
operation. Read moreSource§impl Mul<Dimensionless> for Capacity
impl Mul<Dimensionless> for Capacity
Source§impl Mul<Dimensionless> for Flow
impl Mul<Dimensionless> for Flow
Source§impl Mul<Dimensionless> for FlowPerActivity
impl Mul<Dimensionless> for FlowPerActivity
Source§type Output = FlowPerActivity
type Output = FlowPerActivity
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Dimensionless) -> FlowPerActivity
fn mul(self, rhs: Dimensionless) -> FlowPerActivity
Performs the
*
operation. Read moreSource§impl Mul<Dimensionless> for Money
impl Mul<Dimensionless> for Money
Source§impl Mul<Dimensionless> for MoneyPerActivity
impl Mul<Dimensionless> for MoneyPerActivity
Source§type Output = MoneyPerActivity
type Output = MoneyPerActivity
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Dimensionless) -> MoneyPerActivity
fn mul(self, rhs: Dimensionless) -> MoneyPerActivity
Performs the
*
operation. Read moreSource§impl Mul<Dimensionless> for MoneyPerCapacity
impl Mul<Dimensionless> for MoneyPerCapacity
Source§type Output = MoneyPerCapacity
type Output = MoneyPerCapacity
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Dimensionless) -> MoneyPerCapacity
fn mul(self, rhs: Dimensionless) -> MoneyPerCapacity
Performs the
*
operation. Read moreSource§impl Mul<Dimensionless> for MoneyPerCapacityPerYear
impl Mul<Dimensionless> for MoneyPerCapacityPerYear
Source§type Output = MoneyPerCapacityPerYear
type Output = MoneyPerCapacityPerYear
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Dimensionless) -> MoneyPerCapacityPerYear
fn mul(self, rhs: Dimensionless) -> MoneyPerCapacityPerYear
Performs the
*
operation. Read moreSource§impl Mul<Dimensionless> for MoneyPerFlow
impl Mul<Dimensionless> for MoneyPerFlow
Source§type Output = MoneyPerFlow
type Output = MoneyPerFlow
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Dimensionless) -> MoneyPerFlow
fn mul(self, rhs: Dimensionless) -> MoneyPerFlow
Performs the
*
operation. Read moreSource§impl Mul<Dimensionless> for MoneyPerYear
impl Mul<Dimensionless> for MoneyPerYear
Source§type Output = MoneyPerYear
type Output = MoneyPerYear
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Dimensionless) -> MoneyPerYear
fn mul(self, rhs: Dimensionless) -> MoneyPerYear
Performs the
*
operation. Read moreSource§impl Mul<Dimensionless> for Year
impl Mul<Dimensionless> for Year
Source§impl Mul<Flow> for Dimensionless
impl Mul<Flow> for Dimensionless
Source§impl Mul<FlowPerActivity> for Dimensionless
impl Mul<FlowPerActivity> for Dimensionless
Source§type Output = FlowPerActivity
type Output = FlowPerActivity
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: FlowPerActivity) -> FlowPerActivity
fn mul(self, rhs: FlowPerActivity) -> FlowPerActivity
Performs the
*
operation. Read moreSource§impl Mul<Money> for Dimensionless
impl Mul<Money> for Dimensionless
Source§impl Mul<MoneyPerActivity> for Dimensionless
impl Mul<MoneyPerActivity> for Dimensionless
Source§type Output = MoneyPerActivity
type Output = MoneyPerActivity
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: MoneyPerActivity) -> MoneyPerActivity
fn mul(self, rhs: MoneyPerActivity) -> MoneyPerActivity
Performs the
*
operation. Read moreSource§impl Mul<MoneyPerCapacity> for Dimensionless
impl Mul<MoneyPerCapacity> for Dimensionless
Source§type Output = MoneyPerCapacity
type Output = MoneyPerCapacity
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: MoneyPerCapacity) -> MoneyPerCapacity
fn mul(self, rhs: MoneyPerCapacity) -> MoneyPerCapacity
Performs the
*
operation. Read moreSource§impl Mul<MoneyPerCapacityPerYear> for Dimensionless
impl Mul<MoneyPerCapacityPerYear> for Dimensionless
Source§type Output = MoneyPerCapacityPerYear
type Output = MoneyPerCapacityPerYear
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: MoneyPerCapacityPerYear) -> MoneyPerCapacityPerYear
fn mul(self, rhs: MoneyPerCapacityPerYear) -> MoneyPerCapacityPerYear
Performs the
*
operation. Read moreSource§impl Mul<MoneyPerFlow> for Dimensionless
impl Mul<MoneyPerFlow> for Dimensionless
Source§type Output = MoneyPerFlow
type Output = MoneyPerFlow
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: MoneyPerFlow) -> MoneyPerFlow
fn mul(self, rhs: MoneyPerFlow) -> MoneyPerFlow
Performs the
*
operation. Read moreSource§impl Mul<MoneyPerYear> for Dimensionless
impl Mul<MoneyPerYear> for Dimensionless
Source§type Output = MoneyPerYear
type Output = MoneyPerYear
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: MoneyPerYear) -> MoneyPerYear
fn mul(self, rhs: MoneyPerYear) -> MoneyPerYear
Performs the
*
operation. Read moreSource§impl Mul<Year> for Dimensionless
impl Mul<Year> for Dimensionless
Source§impl Mul for Dimensionless
impl Mul for Dimensionless
Source§impl PartialEq for Dimensionless
impl PartialEq for Dimensionless
Source§impl PartialOrd for Dimensionless
impl PartialOrd for Dimensionless
Source§impl Serialize for Dimensionless
impl Serialize for Dimensionless
Source§impl Sub for Dimensionless
impl Sub for Dimensionless
Source§type Output = Dimensionless
type Output = Dimensionless
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: Dimensionless) -> Dimensionless
fn sub(self, rhs: Dimensionless) -> Dimensionless
Performs the
-
operation. Read moreSource§impl SubAssign for Dimensionless
impl SubAssign for Dimensionless
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreSource§impl Sum for Dimensionless
impl Sum for Dimensionless
impl Copy for Dimensionless
impl StructuralPartialEq for Dimensionless
Auto Trait Implementations§
impl Freeze for Dimensionless
impl RefUnwindSafe for Dimensionless
impl Send for Dimensionless
impl Sync for Dimensionless
impl Unpin for Dimensionless
impl UnwindSafe for Dimensionless
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