Enum burble_const::Unit

source ·
#[non_exhaustive]
#[repr(u16)]
pub enum Unit {
Show 126 variants None, Metres, Kilograms, Seconds, Amperes, Kelvins, Moles, Candelas, SquareMetres, CubicMetres, MetresPerSecond, MetresPerSecondSquared, ReciprocalMetres, KilogramsPerCubicMetre, KilogramsPerSquareMetre, CubicMetresPerKilogram, AmperesPerSquareMetre, AmperesPerMetre, MolesPerCubicMetre, ConcentrationKilogramsPerCubicMetre, CandelasPerSquareMetre, RefractiveIndex, RelativePermeability, Radians, Steradians, Hertz, Newtons, Pascals, Joules, Watts, Coulombs, Volts, Farads, Ohms, Siemens, Webers, Tesla, Henries, Celsius, Lumens, Lux, Becquerels, Grays, Sieverts, Katals, PascalSeconds, NewtonMetres, NewtonsPerMetre, RadiansPerSecond, RadiansPerSecondSquared, FluxWattsPerSquareMetre, JoulesPerKelvin, JoulesPerKilogramKelvin, JoulesPerKilogram, WattsPerMetreKelvin, JoulesPerCubicMetre, VoltsPerMetre, CoulombsPerCubicMetre, CoulombsPerSquareMetre, FluxCoulombsPerSquareMetre, FaradsPerMetre, HenriesPerMetre, JoulesPerMole, JoulesPerMoleKelvin, CoulombsPerKilogram, GraysPerSecond, WattsPerSteradian, WattsPerSquareMetreSteradian, KatalsPerCubicMetre, Minutes, Hours, Days, Degrees, DegreeMinutes, DegreeSeconds, Hectares, Litres, Tonnes, Bars, MillimetresOfMercury, Angstroms, NauticalMiles, Barns, Knots, Nepers, Bels, Yards, Parsecs, Inches, Feet, Miles, PoundsPerSquareInch, KilometresPerHour, MilesPerHour, RevolutionsPerMinute, GramCalories, KilogramCalories, KilowattHours, Fahrenheit, Percent, PerMille, BeatsPerMinute, AmpereHours, MilligramsPerDecilitre, MillimolesPerLitre, Years, Months, CountsPerCubicMetre, WattsPerSquareMetre, MillilitersPerKilogramPerMinute, Pounds, MetabolicEquivalent, StepsPerMinute, StrokesPerMinute, KilometresPerMinute, LumensPerWatt, LumenHours, LuxHours, GramsPerSecond, LitresPerSecond, Decibels, PartsPerMillion, PartsPerBillion, MilligramsPerDecilitrePerMinute, KilovoltAmpereHours, VoltAmperes,
}
Expand description

Characteristic presentation format units ([Assigned Numbers] Section 3.5.2).

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

None

§

Metres

§

Kilograms

§

Seconds

§

Amperes

§

Kelvins

§

Moles

§

Candelas

§

SquareMetres

§

CubicMetres

§

MetresPerSecond

§

MetresPerSecondSquared

§

ReciprocalMetres

§

KilogramsPerCubicMetre

§

KilogramsPerSquareMetre

§

CubicMetresPerKilogram

§

AmperesPerSquareMetre

§

AmperesPerMetre

§

MolesPerCubicMetre

§

ConcentrationKilogramsPerCubicMetre

§

CandelasPerSquareMetre

§

RefractiveIndex

§

RelativePermeability

§

Radians

§

Steradians

§

Hertz

§

Newtons

§

Pascals

§

Joules

§

Watts

§

Coulombs

§

Volts

§

Farads

§

Ohms

§

Siemens

§

Webers

§

Tesla

§

Henries

§

Celsius

§

Lumens

§

Lux

§

Becquerels

§

Grays

§

Sieverts

§

Katals

§

PascalSeconds

§

NewtonMetres

§

NewtonsPerMetre

§

RadiansPerSecond

§

RadiansPerSecondSquared

§

FluxWattsPerSquareMetre

§

JoulesPerKelvin

§

JoulesPerKilogramKelvin

§

JoulesPerKilogram

§

WattsPerMetreKelvin

§

JoulesPerCubicMetre

§

VoltsPerMetre

§

CoulombsPerCubicMetre

§

CoulombsPerSquareMetre

§

FluxCoulombsPerSquareMetre

§

FaradsPerMetre

§

HenriesPerMetre

§

JoulesPerMole

§

JoulesPerMoleKelvin

§

CoulombsPerKilogram

§

GraysPerSecond

§

WattsPerSteradian

§

WattsPerSquareMetreSteradian

§

KatalsPerCubicMetre

§

Minutes

§

Hours

§

Days

§

Degrees

§

DegreeMinutes

§

DegreeSeconds

§

Hectares

§

Litres

§

Tonnes

§

Bars

§

MillimetresOfMercury

§

Angstroms

§

NauticalMiles

§

Barns

§

Knots

§

Nepers

§

Bels

§

Yards

§

Parsecs

§

Inches

§

Feet

§

Miles

§

PoundsPerSquareInch

§

KilometresPerHour

§

MilesPerHour

§

RevolutionsPerMinute

§

GramCalories

§

KilogramCalories

§

KilowattHours

§

Fahrenheit

§

Percent

§

PerMille

§

BeatsPerMinute

§

AmpereHours

§

MilligramsPerDecilitre

§

MillimolesPerLitre

§

Years

§

Months

§

CountsPerCubicMetre

§

WattsPerSquareMetre

§

MillilitersPerKilogramPerMinute

§

Pounds

§

MetabolicEquivalent

§

StepsPerMinute

§

StrokesPerMinute

§

KilometresPerMinute

§

LumensPerWatt

§

LumenHours

§

LuxHours

§

GramsPerSecond

§

LitresPerSecond

§

Decibels

§

PartsPerMillion

§

PartsPerBillion

§

MilligramsPerDecilitrePerMinute

§

KilovoltAmpereHours

§

VoltAmperes

Implementations§

source§

impl Unit

source

pub const NONE: Uuid16 = _

source

pub const METRES: Uuid16 = _

source

pub const KILOGRAMS: Uuid16 = _

source

pub const SECONDS: Uuid16 = _

source

pub const AMPERES: Uuid16 = _

source

pub const KELVINS: Uuid16 = _

source

pub const MOLES: Uuid16 = _

source

pub const CANDELAS: Uuid16 = _

source

pub const SQUARE_METRES: Uuid16 = _

source

pub const CUBIC_METRES: Uuid16 = _

source

pub const METRES_PER_SECOND: Uuid16 = _

source

pub const METRES_PER_SECOND_SQUARED: Uuid16 = _

source

pub const RECIPROCAL_METRES: Uuid16 = _

source

pub const KILOGRAMS_PER_CUBIC_METRE: Uuid16 = _

source

pub const KILOGRAMS_PER_SQUARE_METRE: Uuid16 = _

source

pub const CUBIC_METRES_PER_KILOGRAM: Uuid16 = _

source

pub const AMPERES_PER_SQUARE_METRE: Uuid16 = _

source

pub const AMPERES_PER_METRE: Uuid16 = _

source

pub const MOLES_PER_CUBIC_METRE: Uuid16 = _

source

pub const CONCENTRATION_KILOGRAMS_PER_CUBIC_METRE: Uuid16 = _

source

pub const CANDELAS_PER_SQUARE_METRE: Uuid16 = _

source

pub const REFRACTIVE_INDEX: Uuid16 = _

source

pub const RELATIVE_PERMEABILITY: Uuid16 = _

source

pub const RADIANS: Uuid16 = _

source

pub const STERADIANS: Uuid16 = _

source

pub const HERTZ: Uuid16 = _

source

pub const NEWTONS: Uuid16 = _

source

pub const PASCALS: Uuid16 = _

source

pub const JOULES: Uuid16 = _

source

pub const WATTS: Uuid16 = _

source

pub const COULOMBS: Uuid16 = _

source

pub const VOLTS: Uuid16 = _

source

pub const FARADS: Uuid16 = _

source

pub const OHMS: Uuid16 = _

source

pub const SIEMENS: Uuid16 = _

source

pub const WEBERS: Uuid16 = _

source

pub const TESLA: Uuid16 = _

source

pub const HENRIES: Uuid16 = _

source

pub const CELSIUS: Uuid16 = _

source

pub const LUMENS: Uuid16 = _

source

pub const LUX: Uuid16 = _

source

pub const BECQUERELS: Uuid16 = _

source

pub const GRAYS: Uuid16 = _

source

pub const SIEVERTS: Uuid16 = _

source

pub const KATALS: Uuid16 = _

source

pub const PASCAL_SECONDS: Uuid16 = _

source

pub const NEWTON_METRES: Uuid16 = _

source

pub const NEWTONS_PER_METRE: Uuid16 = _

source

pub const RADIANS_PER_SECOND: Uuid16 = _

source

pub const RADIANS_PER_SECOND_SQUARED: Uuid16 = _

source

pub const FLUX_WATTS_PER_SQUARE_METRE: Uuid16 = _

source

pub const JOULES_PER_KELVIN: Uuid16 = _

source

pub const JOULES_PER_KILOGRAM_KELVIN: Uuid16 = _

source

pub const JOULES_PER_KILOGRAM: Uuid16 = _

source

pub const WATTS_PER_METRE_KELVIN: Uuid16 = _

source

pub const JOULES_PER_CUBIC_METRE: Uuid16 = _

source

pub const VOLTS_PER_METRE: Uuid16 = _

source

pub const COULOMBS_PER_CUBIC_METRE: Uuid16 = _

source

pub const COULOMBS_PER_SQUARE_METRE: Uuid16 = _

source

pub const FLUX_COULOMBS_PER_SQUARE_METRE: Uuid16 = _

source

pub const FARADS_PER_METRE: Uuid16 = _

source

pub const HENRIES_PER_METRE: Uuid16 = _

source

pub const JOULES_PER_MOLE: Uuid16 = _

source

pub const JOULES_PER_MOLE_KELVIN: Uuid16 = _

source

pub const COULOMBS_PER_KILOGRAM: Uuid16 = _

source

pub const GRAYS_PER_SECOND: Uuid16 = _

source

pub const WATTS_PER_STERADIAN: Uuid16 = _

source

pub const WATTS_PER_SQUARE_METRE_STERADIAN: Uuid16 = _

source

pub const KATALS_PER_CUBIC_METRE: Uuid16 = _

source

pub const MINUTES: Uuid16 = _

source

pub const HOURS: Uuid16 = _

source

pub const DAYS: Uuid16 = _

source

pub const DEGREES: Uuid16 = _

source

pub const DEGREE_MINUTES: Uuid16 = _

source

pub const DEGREE_SECONDS: Uuid16 = _

source

pub const HECTARES: Uuid16 = _

source

pub const LITRES: Uuid16 = _

source

pub const TONNES: Uuid16 = _

source

pub const BARS: Uuid16 = _

source

pub const MILLIMETRES_OF_MERCURY: Uuid16 = _

source

pub const ANGSTROMS: Uuid16 = _

source

pub const NAUTICAL_MILES: Uuid16 = _

source

pub const BARNS: Uuid16 = _

source

pub const KNOTS: Uuid16 = _

source

pub const NEPERS: Uuid16 = _

source

pub const BELS: Uuid16 = _

source

pub const YARDS: Uuid16 = _

source

pub const PARSECS: Uuid16 = _

source

pub const INCHES: Uuid16 = _

source

pub const FEET: Uuid16 = _

source

pub const MILES: Uuid16 = _

source

pub const POUNDS_PER_SQUARE_INCH: Uuid16 = _

source

pub const KILOMETRES_PER_HOUR: Uuid16 = _

source

pub const MILES_PER_HOUR: Uuid16 = _

source

pub const REVOLUTIONS_PER_MINUTE: Uuid16 = _

source

pub const GRAM_CALORIES: Uuid16 = _

source

pub const KILOGRAM_CALORIES: Uuid16 = _

source

pub const KILOWATT_HOURS: Uuid16 = _

source

pub const FAHRENHEIT: Uuid16 = _

source

pub const PERCENT: Uuid16 = _

source

pub const PER_MILLE: Uuid16 = _

source

pub const BEATS_PER_MINUTE: Uuid16 = _

source

pub const AMPERE_HOURS: Uuid16 = _

source

pub const MILLIGRAMS_PER_DECILITRE: Uuid16 = _

source

pub const MILLIMOLES_PER_LITRE: Uuid16 = _

source

pub const YEARS: Uuid16 = _

source

pub const MONTHS: Uuid16 = _

source

pub const COUNTS_PER_CUBIC_METRE: Uuid16 = _

source

pub const WATTS_PER_SQUARE_METRE: Uuid16 = _

source

pub const MILLILITERS_PER_KILOGRAM_PER_MINUTE: Uuid16 = _

source

pub const POUNDS: Uuid16 = _

source

pub const METABOLIC_EQUIVALENT: Uuid16 = _

source

pub const STEPS_PER_MINUTE: Uuid16 = _

source

pub const STROKES_PER_MINUTE: Uuid16 = _

source

pub const KILOMETRES_PER_MINUTE: Uuid16 = _

source

pub const LUMENS_PER_WATT: Uuid16 = _

source

pub const LUMEN_HOURS: Uuid16 = _

source

pub const LUX_HOURS: Uuid16 = _

source

pub const GRAMS_PER_SECOND: Uuid16 = _

source

pub const LITRES_PER_SECOND: Uuid16 = _

source

pub const DECIBELS: Uuid16 = _

source

pub const PARTS_PER_MILLION: Uuid16 = _

source

pub const PARTS_PER_BILLION: Uuid16 = _

source

pub const MILLIGRAMS_PER_DECILITRE_PER_MINUTE: Uuid16 = _

source

pub const KILOVOLT_AMPERE_HOURS: Uuid16 = _

source

pub const VOLT_AMPERES: Uuid16 = _

source

pub const fn uuid(self) -> Uuid

Returns the Uuid representation of the variant.

source

pub const fn uuid16(self) -> Uuid16

Returns the Uuid16 representation of the variant.

Trait Implementations§

source§

impl Clone for Unit

source§

fn clone(&self) -> Unit

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Unit

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Unit

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Unit> for Uuid

source§

fn from(v: Unit) -> Self

Converts to this type from the input type.
source§

impl From<Unit> for Uuid16

source§

fn from(v: Unit) -> Self

Converts to this type from the input type.
source§

impl From<Unit> for u16

source§

fn from(enum_value: Unit) -> Self

Converts to this type from the input type.
source§

impl Ord for Unit

source§

fn cmp(&self, other: &Unit) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Unit> for Unit

source§

fn eq(&self, other: &Unit) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Unit> for Uuid

source§

fn eq(&self, rhs: &Unit) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Unit> for Uuid16

source§

fn eq(&self, rhs: &Unit) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Uuid> for Unit

source§

fn eq(&self, rhs: &Uuid) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Uuid16> for Unit

source§

fn eq(&self, rhs: &Uuid16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Unit> for Unit

source§

fn partial_cmp(&self, other: &Unit) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<Uuid16> for Unit

§

type Error = TryFromPrimitiveError<Unit>

The type returned in the event of a conversion error.
source§

fn try_from(u: Uuid16) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<u16> for Unit

§

type Error = TryFromPrimitiveError<Unit>

The type returned in the event of a conversion error.
source§

fn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
source§

impl TryFromPrimitive for Unit

§

type Primitive = u16

source§

const NAME: &'static str = _

source§

fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>

source§

impl Copy for Unit

source§

impl Eq for Unit

source§

impl StructuralEq for Unit

source§

impl StructuralPartialEq for Unit

Auto Trait Implementations§

§

impl RefUnwindSafe for Unit

§

impl Send for Unit

§

impl Sync for Unit

§

impl Unpin for Unit

§

impl UnwindSafe for Unit

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.