MeasurementUnit
enum · ferroui-protranslate-core · v0.5.0
enum MeasurementUnit
Members
MeterKilometerCentimeterMillimeterInchFootYardMileCelsiusFahrenheitKelvinGramKilogramOuncePoundStoneMilliliterLiterUSFluidOunceUSCupUSPintUSQuartUSGallonImperialFluidOunceImperialPintImperialQuartImperialGallonMetersPerSecondKilometersPerHourMilesPerHourFeetPerSecondALLcategorysymbolfrom_symbol
Meter
Meter
Kilometer
Kilometer
Centimeter
Centimeter
Millimeter
Millimeter
Inch
Inch
Foot
Foot
Yard
Yard
Mile
Mile
Celsius
Celsius
Fahrenheit
Fahrenheit
Kelvin
Kelvin
Gram
Gram
Kilogram
Kilogram
Ounce
Ounce
Pound
Pound
Stone
Stone
Milliliter
Milliliter
Liter
Liter
USFluidOunce
USFluidOunce
USCup
USCup
USPint
USPint
USQuart
USQuart
USGallon
USGallon
ImperialFluidOunce
ImperialFluidOunce
ImperialPint
ImperialPint
ImperialQuart
ImperialQuart
ImperialGallon
ImperialGallon
MetersPerSecond
MetersPerSecond
KilometersPerHour
KilometersPerHour
MilesPerHour
MilesPerHour
FeetPerSecond
FeetPerSecond
ALL
const ALL: &'static [Self]
category
fn category(self: Self) -> MeasurementUnitCategory
symbol
fn symbol(self: Self) -> &'static str
from_symbol
fn from_symbol(symbol: &str, system: MeasurementSystem) -> Result<Self, TranslationError>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherDebugCloneCopyStructuralPartialEqPartialEqEqHash
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.