struct Units::CompileTimeUnit(X, M, L, J, O, I, N, T)

Included Modules

Extended Modules

Defined in:

compile_time_unit.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Units::Casting

to(measure : AlgebraicUnit)
to(&)
to
, to_amperes to_amperes, to_candela to_candela, to_days to_days, to_feet to_feet, to_ft to_ft, to_hours to_hours, to_hr to_hr, to_in to_in, to_inches to_inches, to_kelvin to_kelvin, to_kilograms to_kilograms, to_meters to_meters, to_min to_min, to_minutes to_minutes, to_moles to_moles, to_seconds to_seconds, to_yards to_yards, to_yd to_yd, to_years to_years, to_yr to_yr

Instance methods inherited from module Units::AlgebraicUnit(X)

*(other : AlgebraicUnit) : AlgebraicUnit
*(other) : AlgebraicUnit
*
, **(other) : AlgebraicUnit **, +(other : AlgebraicUnit) : AlgebraicUnit
+(other)
+
, -(other : AlgebraicUnit) : AlgebraicUnit
-(other)
- : AlgebraicUnit
-
, /(other : AlgebraicUnit) : AlgebraicUnit
/(other) : AlgebraicUnit
/
, cb cb, cbrt cbrt, dimension : Dimension dimension, inverse : AlgebraicUnit inverse, left_add(lhs) left_add, left_multiply(lhs) left_multiply, left_subtract(lhs) left_subtract, sq sq, sqrt sqrt, to_s(io : IO) : Nil to_s

Constructor Detail

def self.new(value : X) #

TODO add protected again


[View source]

Class Method Detail

def self.from(value, measure : CompileTimeUnit(_, M, L, J, O, I, N, T)) forall M, L, J, O, I, N, T #

[View source]
def self.from_amperes(value) #

[View source]
def self.from_candela(value) #

[View source]
def self.from_kelvin(value) #

[View source]
def self.from_kilograms(value) #

[View source]
def self.from_meters(value) #

[View source]
def self.from_moles(value) #

[View source]
def self.from_seconds(value) #

[View source]

Instance Method Detail

def *(other : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2 #

[View source]
def *(other : AlgebraicUnit) #

[View source]
def *(other) : CompileTimeUnit #

[View source]
def **(power : Fix(Exp).class) : CompileTimeUnit forall Exp #

[View source]
def **(other) : RuntimeUnit #

[View source]
def +(other : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2 #

[View source]
def +(other : AlgebraicUnit) #

[View source]
def +(other) #

[View source]
def -(other : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2 #

[View source]
def -(other : AlgebraicUnit) #

[View source]
def -(other) #

[View source]
def - : CompileTimeUnit #

[View source]
def /(other : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2 #

[View source]
def /(other : AlgebraicUnit) #

[View source]
def /(other) : CompileTimeUnit #

[View source]
def cb #

[View source]
def cbrt #

[View source]
def dimension : Dimension #

[View source]
def inverse : CompileTimeUnit #

[View source]
def left_add(lhs : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2 #

[View source]
def left_add(lhs) #

[View source]
def left_multiply(lhs : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2 #

[View source]
def left_multiply(lhs) #

[View source]
def sq #

[View source]
def sqrt #

[View source]
def to(measure : CompileTimeUnit) #

[View source]
def to(measure : AlgebraicUnit) #

[View source]
def to_amperes #

[View source]
def to_candela #

[View source]
def to_kelvin #

[View source]
def to_kilograms #

[View source]
def to_meters #

[View source]
def to_moles #

[View source]
def to_seconds #

[View source]