FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    UnitConversionService

    trait · ferroui-protranslate-core · v0.5.0

    trait UnitConversionService
    

    View source

    Members

    get_category

    fn get_category(self: &Self, unit: MeasurementUnit) -> MeasurementUnitCategory
    

    Source

    convert

    fn convert(self: &Self, value: f64, from: MeasurementUnit, to: MeasurementUnit) -> Result<f64, TranslationError>
    

    Source

    convert_to_profile

    fn convert_to_profile(self: &Self, value: f64, from: MeasurementUnit, profile: &MeasurementSystemProfile) -> Result<MeasurementValue, TranslationError>
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.