Struct yaiouom::Inv
[−]
[src]
pub struct Inv<A> where
A: Unit, { /* fields omitted */ }
The inverse of a unit of measure.
Note that Rust's type system is not powerful enough
to automatically realize that Mul<A, Inv<A>> == Dimensionless
.
See the documentation of unify for details on how to work around this limitation.
Trait Implementations
impl<A: Unit> Unit for Inv<A>
[src]
fn add_to_runtime(repr: &mut RuntimeUnit, positive: bool)
[src]
Add a compile-type unit to a dynamic unit, either in positive position (if positive
is true
) or in negative position (if positive
is false
). Read more
fn new<T>(value: T) -> Measure<T, Self> where
Self: Sized,
[src]
Self: Sized,
fn as_runtime() -> RuntimeUnit
[src]
Return a runtime representation of this unit. This method is designed for indexing and debugging. Not particularly fast. Read more