pub trait UnitConversion {
// Required methods
fn convert_to_base(&self, value: Decimal) -> Decimal;
fn convert_from_base(&self, value: Decimal) -> Decimal;
}Required Methods§
fn convert_to_base(&self, value: Decimal) -> Decimal
fn convert_from_base(&self, value: Decimal) -> Decimal
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".