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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoRate for i64

Implementors§