Skip to main content

IntoRate

Trait IntoRate 

Source
pub trait IntoRate {
    // Required method
    fn into_rate(self) -> Rational;
}
Expand description

An exchange rate accepted by set_rate — a plain integer (1), an exact LogosDecimal (1.10), or a LogosRational. All widen losslessly onto the Rational tower so normalisation stays exact, matching the interpreter’s set_rate builtin.

Required Methods§

Source

fn into_rate(self) -> Rational

Implementations on Foreign Types§

Source§

impl IntoRate for i64

Source§

fn into_rate(self) -> Rational

Implementors§